[fpc-pascal] Underscores in numerical literals - grouping
yann.merignac at gmail.com
Tue Nov 22 12:27:14 CET 2016
> Is there any other place in any language (programming or natural) where
underscored are used in this way?
In Ada at least since 1983.
2016-11-22 1:26 GMT+01:00 Gordon Findlay <gfindlay.linux at gmail.com>:
> 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>
>> I don't know about you, but I like this idea implemented in Java 7 and
>> 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.
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal