In the fork of Narcissus at https://github.com/allenwb/narcissus I have
implemented various ES.next proposals (and a couple not yet proposals) for
enhanced object literal support. the extensions include:
* Concise Method Properties in Object Literals
* Comma Optional After Method and Accessor Properties in Object Literals
* The <| Operator
* Object Extension Literals using .{
* super References in Methods
* Computed Property Names in Object Literals Property Definitions
(see https://github.com/allenwb/narcissus/blob/master/harmony-extensions.md for
more details on the specific extensions)
With these extensions I am able to "compile" the version of my Smalltalk
Collection classes experiment that is at
https://github.com/allenwb/ESnext-experiments/blob/master/exp1-nc-narcissus.js
The best way to evaluate new language features is to actually use them. Please
feel free to install this of Narcissus and try using the njs shell to write and
run some code that uses these new features and then give us your feedback.
Allen_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss