Wiki

Ticket #80 (new enhancement)

Opened 16 years ago

Warn for poorly placed underscores in numbers

Reported by: Chuck Owned by:
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

Underscores can be used in numeric literals to separate thousands. Examples include 10_000 and 1_000.5. Give a warning if the placement of underscores does not make sense such as 10_00.5.

After all, the underscores are to increase readability and 10_00 does not do that.

Note: See TracTickets for help on using tickets.