Object.eq is ready for discussion

Kevin Curtis kevinc1846 at gmail.com
Tue Sep 7 00:55:01 PDT 2010


With a module system it could be useful to have a module for the
'meta' functions - rather than putting more 'static class methods' on
Object. (Especially with module import  - keys, values, eq etc - would
be nice to access these directly).

Though I appreciate that modules may be some way off - and the
Object.eq function - as it's api - can be rolled out quite easily.

How about some interim method of getting access to 'native' modules:
"use strict modules={meta, sys:Sys}" // destructuring notation from
simple modules
if (!meta) { ... workaround ... }
if (meta.eq(x,y)) { ... do something ... }

--


More information about the es-discuss mailing list