Enums?

Dean Landolt dean at deanlandolt.com
Fri Sep 30 19:33:22 PDT 2011


On Fri, Sep 30, 2011 at 10:13 PM, Axel Rauschmayer <axel at rauschma.de> 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.
>


ISTM private name objects make a pretty nice stand-in for symbols.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110930/d00ee767/attachment.html>


More information about the es-discuss mailing list