W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: [whatwg] WebIDL and HTML5

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 27 Aug 2008 20:48:42 -0700
Cc: Garrett Smith <dhtmlkitchen@gmail.com>, Web Applications Working Group WG <public-webapps@w3.org>
Message-Id: <1F1CA528-5188-44B4-B543-CAA8ACFF7E5A@apple.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>


On Aug 27, 2008, at 2:39 PM, Boris Zbarsky wrote:

>
> Garrett Smith wrote:
>> Given that, I suggest moving forward:
>>  Test, then document those methods as having special behavior. Do
>> this not by a null->value mapping, but by documenting the method's
>> algorithm in simple terms. e.g. "if X is not a string, throw an  
>> error"
>
> But giving a (per-method) mapping means that the algorithm can then  
> be machine-generated from the IDL, which is an interoperability win:  
> less chance of a mistake being made.

In fact, we already use such IDL annotations in WebKit and it has made  
our DOM bindings more consistent, more interoperable, and less prone  
to breaking through coding errors. I think it is a good model for the  
spec to do the same.

  - Maciej
Received on Thursday, 28 August 2008 03:49:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:27 GMT