Skip to content

Do not allow 0... syntax for octal #151

Closed
@gopherbot

Description

@gopherbot

by notan.kdev:

What steps will reproduce the problem?
1. Enter a list of numbers 
     1230,
     0123,
     3012,
     2301
guess what went wrong.


Starting octal number with a 0 prefix is a pain.
You should make it a syntax error, or at least it is worth a warning.
If somebody really needs octal allow 
0o123 
which is consistent to the hex notation 0x123
   ( 0b0101 for binary would be handy sometimes, 
     0d0123 for decimal may make the syntax complete)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions