W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

Should binding section be rewritten more algorithmically?

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Fri, 23 Mar 2012 18:08:32 +0000
To: public-script-coord <public-script-coord@w3.org>
Message-ID: <375330098DA64D9CBA0433B6DB57FD7C@gmail.com>
Is anyone else on this list implementing WebIDL? If so, I'm wondering if you would have an opinion as to whether the binding sections should be rewritten as algorithms (and more closely follow the style of ECMAScript5). For example:   

Implementing an IDL exception is done as follows:

1. Let IDL be the IDL fragment to be implemented.   
2. Let E be a new Function object.
3. If the  [NoInterfaceObject] extended attribute was not used with IDL:  
__x. Let identifier be the identifier of IDL.  
__x. On the global object, call [[DefineOwnProperty]] with identifier, and Property Descriptor {[[Value]]: E, [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }, false.  

and so on…  

or am I the only person who is struggling to implement the spec in its current form?  
Received on Friday, 23 March 2012 18:09:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC