A Narcissus implementation of various object literal extensions

Allen Wirfs-Brock allen at wirfs-brock.com
Mon Aug 15 10:31:22 PDT 2011

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110815/7d308bf6/attachment-0001.html>

More information about the es-discuss mailing list