[fpc-pascal] Underscores in numerical literals - grouping

Gordon Findlay gfindlay.linux at gmail.com
Tue Nov 22 01:26:37 CET 2016


Yet another daft idea from java.  Is there any other place in any language
(programming or natural) where underscored are used in this way? Any long
list of digits will represent a string anyway. My library card had a field
with 9 digits, but that sure ain't a number.

On 22/11/2016 3:46 am, "Graeme Geldenhuys" <mailinglists at geldenhuys.co.uk>
wrote:

> 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
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161122/a7a013b7/attachment.html>


More information about the fpc-pascal mailing list