Thanks for popping in Brendan! On Fri, 18 Dec 2015 2:41 pm Bob Myers <[email protected]> wrote:
> One could do worse than look at Python's enums: > https://docs.python.org/3/library/enum.html. > > -- > Bob > > On Fri, Dec 18, 2015 at 3:12 AM, Rick Waldron <[email protected]> > wrote: > >> >> >> On Thu, Dec 17, 2015 at 3:33 PM Steve Kinney <[email protected]> >> wrote: >> >>> I did some initial thinking about this and looked at Rust and Swift as >>> prior art. I started something similar to what was being discussed but came >>> across some edge cases as I went along. >>> >>> https://github.com/stevekinney/ecmascript-enumerations >>> >>> Right now, it's just a draft of notes and thoughts, but I am working on >>> a draft implementation with Sweet.js. >>> >> >> I had originally had values with implicit ordinal numbers, but Mike >> Pennisi (co-author) and I agreed that with Symbol there isn't much benefit >> to making the raw value a number. >> >> Anyway, this is the WIP http://rwaldron.github.io/enum-definitions/ >> >> >> Rick >> > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

