On Oct 1, 2011, at 4:13 AM, Axel Rauschmayer wrote: > One language feature from JavaScript that I miss are enums. Would it make > sense to have something similar for ECMAScript, e.g. via > Lisp-style/Smalltalk-style symbols plus type inference? If yes, has this been > discussed already? I feel strange when I simulate symbols with strings.
http://wiki.ecmascript.org/doku.php?id=proposals:enumeration_type http://wiki.ecmascript.org/doku.php?id=proposals:switch_class http://wiki.ecmascript.org/doku.php?id=discussion:switch_class http://wiki.ecmascript.org/doku.php?id=discussion:switch_class#older_enum_proposal All ES4-era, pretty musty. /be > > -- > Dr. Axel Rauschmayer > > a...@rauschma.de > twitter.com/rauschma > > home: rauschma.de > blog: 2ality.com > > > > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss