support underscores (or spaces) for numeric literals
complete
Zac @ Soulver
complete
Added in 3.6.2
Zac @ Soulver
planned
Zac @ Soulver
Merged in a post:
Allow different thousand separators
John Wiegley
When pasting numbers in from programming languages, they often have the form 1_234_567, since commas and periods cannot be used. Being able to copy&paste in and out numbers of this format would be very useful for using Soulver as an aid to determining constants while writing code (something I find myself doing more and more lately).
Jasper Lai
Alternatively, perhaps Soulver could, upon paste, ignore underscores inside otherwise unbroken strings of digits and parse it like in many languages? (I really like that Soulver honours my system thousands and decimal separators.)
I wonder if it helps that Swift already does this anyway. Plus, if I'm not mistaken, Soulver's already smart enough not to do its separator smarts in comments.
I imagine this could confuse non-coders, but I also can't think of a scenario where non-coders would format numbers like
1_234_567
.