callable objects ?

Domenic Denicola domenic at domenicdenicola.com
Tue Apr 17 14:31:57 PDT 2012


It seems rather non-intention-revealing.

________________________________
From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Mark S. Miller [erights at google.com]
Sent: Tuesday, April 17, 2012 17:20
To: Brendan Eich
Cc: Tom Van Cutsem; Mark Miller; es-discuss
Subject: Re: callable objects ?

+1 for simple enough. It's also shorter (12 vs 20)

On Tue, Apr 17, 2012 at 2:02 PM, Brendan Eich <brendan at mozilla.org<mailto:brendan at mozilla.org>> wrote:
Brendan Eich wrote:
This last point is important: we do not want an object's typeof-type to change by giving it a @call property. But we do want to enable call and construct protocols to be built by users, by giving objects @call and @construct properties.

I did not include an Object.isCallable(v) API that returns true if (@call in v), but we could add that. Testing (@call in v) seems simple enough.


/be
_______________________________________________
es-discuss mailing list
es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
https://mail.mozilla.org/listinfo/es-discuss



--
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120417/9fa1d230/attachment.html>


More information about the es-discuss mailing list