<p dir="ltr">On Jun 2, 2015 1:32 PM, "Chris Kaynor" <<a href="mailto:ckaynor@zindagigames.com">ckaynor@zindagigames.com</a>> wrote:<br>
><br>
> On Tue, Jun 2, 2015 at 12:40 PM, Nathaniel Smith <<a href="mailto:njs@pobox.com">njs@pobox.com</a>> wrote:<br>
>><br>
>> Are there any use cases besides decimals? Wouldn't it be easier to<br>
>> just add, say, a fixed "0d" prefix for decimals?<br>
>><br>
>> 0x1001  # hex<br>
>> 0b1001  # binary<br>
>> 0d1.001 # decimal<br>
><br>
><br>
> In terms of other included useful options, you also have fractions.<br>
><br>
> There could also be benefit of using such a system for cases of numbers with units, such as having the language understand 23.49MB.</p>
<p dir="ltr">The unit libraries I've seen just spell this as "23.49 * MB" (or "22.49 * km / h" for a speed, say). And crucially they don't have any need to override the parsing rules for float literals.</p>
<p dir="ltr">-n</p>