Given that octals are likely here to stay, I think they should look as specialized as they are, so a very conspicuous prefix like 0o really makes sense to me. As to which prefix to use, o seems the easiest to remember.
On Thu, Jan 12, 2012 at 3:57 PM, Brendan Eich <[email protected]> wrote: > No, let's not "do everything". That's a bad way to make standards. > > We should acknowledge that octal is used in JS today and it'll die hard in > certain quarters. I don't think this was considered carefully when the > decision to ban octal in strict mode was made. > > If we want to support octal in strict mode, we can certainly ban crazy > noctal (08, 09). If we choose to prefix, we should pick one prefix (and it > should almost certainly be the same one in Python, Ruby, and CoffeeScript: > 0o). Binary is plausible (0b), but after that I see no need for > arbitrary-radix literals. > > /be > > > > _______________________________________________ > 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

