Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on parsing octal numbers #679

Closed
linuxenko opened this issue Nov 10, 2016 · 3 comments

Comments

@linuxenko
Copy link

commented Nov 10, 2016

It seems like standard does not support octal numbers

Parsing error: Invalid number
@dcousens

This comment has been minimized.

Copy link
Member

commented Nov 10, 2016

If you don't mind me asking, why are you using octal numbers?

@linuxenko

This comment has been minimized.

Copy link
Author

commented Nov 10, 2016

Because it simple to understand and read . for an instance 012000 | 0755 .. can you imagine something like this in decimal ? aha

@feross

This comment has been minimized.

Copy link
Member

commented Nov 23, 2016

This type of octal literal is very confusing and error-prone. I recommend you use the ES6 octal literal format: 0o10 is 8, for example.

More info here: http://www.2ality.com/2015/04/numbers-math-es6.html

@feross feross closed this Nov 23, 2016

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.