Re: Underscores in numbers for legibility
Per Bothner 12 Apr 2019 19:41 UTC
On 4/12/19 12:08 PM, Lassi Kortela wrote:
> The question is, does it interfere with symbols if it's supported without the #d prefix (e.g. 1_000_000). Since Gauche doesn't support that prefix-less notation I presume there is a problem. Still, even with the prefixes it's useful IMHO. Hex and binary can be hard to read, and #d for a long decimal number might be worth it. Opinions?
For what it is worth, it would be valid Common Lisp "potential number",
so in Common Lisp it would not conflict with a symbol.
https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node189.html
--
--Per Bothner
xxxxxx@bothner.com http://per.bothner.com/