Octal literals have their uses (you Unix haters skip this one)

Greg Smith greg at bocoup.com
Thu Jan 12 12:59:18 PST 2012

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 <brendan at mozilla.com> 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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120112/48512389/attachment.html>

More information about the es-discuss mailing list