Fixing instanceof (Array.isArray() etc.)?
Brendan Eich
brendan at mozilla.org
Sun Jan 22 11:55:39 PST 2012
> Axel Rauschmayer <mailto:axel at rauschma.de>
> January 21, 2012 10:13 PM
> Duck typing is an interesting consideration. If one could express
>
> x follows ArraySpec
>
> then that would work for both array-like objects and Array instances
> from other frames.
You're talking about contracts here. Not ready for standardization, but see
http://disnetdev.com/contracts.coffee/
/be
More information about the es-discuss
mailing list