std.data.json formal review

via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 14 00:39:19 PDT 2015


On Friday, 14 August 2015 at 07:14:34 UTC, Sönke Ludwig wrote:
> Am 14.08.2015 um 07:11 schrieb Walter Bright:
>> Make the type for storing a Number be a template parameter.
>>
>
> Then we'd lose the ability to distinguish between integers and 
> floating point in the same lexer instantiation, which is vital 
> for certain input files to avoid losing precision for 64-bit 
> integers. The only solution would be to use Decimal, but that 
> doesn't exist yet and would be slow.

Why can't you specify many types? You should be able to query the 
range/precision of each type?



More information about the Digitalmars-d mailing list