Email list hosting service & mailing list manager

Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 18:54 UTC)
Re: Underscores in numbers for legibility Arthur A. Gleckler (12 Apr 2019 19:02 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 19:08 UTC)
Re: Underscores in numbers for legibility Shiro Kawai (12 Apr 2019 19:33 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 19:46 UTC)
Re: Underscores in numbers for legibility Peter Bex (12 Apr 2019 19:55 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 20:01 UTC)
Re: Underscores in numbers for legibility Peter Bex (12 Apr 2019 20:08 UTC)
Re: Underscores in numbers for legibility Arthur A. Gleckler (12 Apr 2019 20:15 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 20:23 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 22:17 UTC)
Re: Underscores in numbers for legibility John Cowan (12 Apr 2019 22:28 UTC)
Re: Underscores in numbers for legibility Jim Rees (13 Apr 2019 00:04 UTC)
Re: Underscores in numbers for legibility Arthur A. Gleckler (13 Apr 2019 00:10 UTC)
Re: Underscores in numbers for legibility John Cowan (13 Apr 2019 03:14 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (13 Apr 2019 07:27 UTC)
Re: Underscores in numbers for legibility John Cowan (13 Apr 2019 13:52 UTC)
Re: Underscores in numbers for legibility Arthur A. Gleckler (13 Apr 2019 14:26 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (13 Apr 2019 14:40 UTC)
Re: Underscores in numbers for legibility John Cowan (13 Apr 2019 15:27 UTC)
Re: Underscores in numbers for legibility Peter Bex (13 Apr 2019 19:37 UTC)
Re: Underscores in numbers for legibility John Cowan (13 Apr 2019 19:47 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (15 Apr 2019 09:32 UTC)
Re: Underscores in numbers for legibility Arthur A. Gleckler (15 Apr 2019 14:33 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (15 Apr 2019 15:18 UTC)
Re: Underscores in numbers for legibility Arthur A. Gleckler (15 Apr 2019 15:49 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (15 Apr 2019 20:16 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (13 Apr 2019 19:53 UTC)
Re: Underscores in numbers for legibility Per Bothner (13 Apr 2019 16:01 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (13 Apr 2019 16:10 UTC)
Re: Underscores in numbers for legibility Per Bothner (12 Apr 2019 19:41 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 19:47 UTC)
Re: Underscores in numbers for legibility Per Bothner (12 Apr 2019 20:27 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 21:07 UTC)
Re: Underscores in numbers for legibility John Cowan (12 Apr 2019 21:53 UTC)
Re: Underscores in numbers for legibility Lassi Kortela (12 Apr 2019 22:37 UTC)
Re: Underscores in numbers for legibility Per Bothner (13 Apr 2019 16:23 UTC)

Underscores in numbers for legibility Lassi Kortela 12 Apr 2019 18:54 UTC

Has there been any discussion of standardizing the use of underscores in
the read/write syntax of numbers?

Gauche lets me write this:

     gosh> #d123_456
     123456

     gosh> (format "~x" #x123_4_56)
     "123456"

However, without a base prefix (i.e. #b #o #d #x) a number is
interpreted as a symbol:

     123_456

The Ruby language also allows underscores in numbers. Common Lisp leaves
a provision for it in the standard but I don't know of any
implementations that use the opportunity.

I find that it makes it a lot easier to read long strings of digits if
you can separate them into groups like that. YMMV.