[fpc-pascal] Underscores in numerical literals - grouping
Yann Mérignac
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.
http://archive.adaic.com/standards/83lrm/html/lrm-02-04.html
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>
> 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
>>
>
> _______________________________________________
> 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/5b6910f4/attachment.html>
More information about the fpc-pascal
mailing list