[fpc-pascal] Underscores in numerical literals - grouping

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Nov 21 15:46:10 CET 2016


I don't know about you, but I like this idea implemented in Java 7 and
later.

http://jasdhir.blogspot.co.uk/2016/11/using-underscores-in-literals.html


I always find it hard to read long numeric literals.


Alternatively, without needing compiler changes, the IDE's and
programmer editors should become more clever in how they display source
code (think Elastic Tabstops), and automatically display numeric
literals with slight increase in [render] spacing between certain number
groups. Binary literals could be grouped every eight digits, whereas Hex
could be grouped every 4 and Decimals every 3 digits. The age old rule
of programmer source code always being in a mono-spaced font is
ridiculous for this day and age.

Regards,
  Graeme




More information about the fpc-pascal mailing list