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 ... }

--
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to