Re: Selectors: name find method and find signature

On Fri, Sep 13, 2013 at 5:01 PM, Domenic Denicola
<domenic@domenicdenicola.com> wrote:
> Or "let `returnValue` be `new this.constructor(1, 2, 3)`"?

We already define the return type in IDL. If the return type equals
the class type we could have an annotation that indicates it uses
this.constructor vs it using new.

The filtering of the Elements class for Element objects could be
largely declarative too. If we indicate somehow in IDL what it ought
to be filtered on. Elements<~Element> extends Array or some such. Does
not put actual restrictions on the array, but makes those kind of
things clearer. Of course, you get a bit further from just ES, but
more chance of people doing the right thing and code getting shared.


-- 
http://annevankesteren.nl/

Received on Friday, 13 September 2013 19:28:59 UTC