Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Example/use case for separators within octal integer literal? #44

@mathiasbynens

Description

@mathiasbynens

https://github.com/tc39/proposal-numeric-separator#octal-literal mentions that separators in legacy octal integer literals (e.g. 01234567) are not supported, but it fails to mention that the proposal does support separators in (non-legacy) octal integer literals, e.g. 0o123456, and it doesn’t give an example nor does it motivate the use case.

Can this be clarified + an example be added please? I’m struggling to think of a use case for separators in octal integer literals. Where would it make sense to even put the separators?

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