Number literals (Was: Re: Case Range Statement ..)

Jesse Phillips jessekphillips at gmail.com
Tue Jul 7 21:35:04 PDT 2009


On Tue, 07 Jul 2009 20:20:18 -0500, Andrei Alexandrescu wrote:

> Derek Parnell wrote:
>> On Tue, 07 Jul 2009 20:08:55 -0400, bearophile wrote:
>> 
>>> Nick Sabalausky:
>>>> why in the world is anyone defending the continued existance of "5."
>>>> and ".5"?<
>>> I'm for disallowing them; 5.0 ad 0.5 are better. Anyone else
>>> pro/against this idea?
>> 
>> I would not complain if trailing dot and leading dot were disallowed.
> 
> I think the question that should be asked is: would anyone complain if
> they were kept? We have bigger rocks to move than that one.
> 
> Andrei

Why would this be hard to deal with, just say it isn't allowed in the 
spec and note that DMD does not conform. Is DMD really going to conform 
to the D2 spec upon release?

Personally I use .5 in writing all the time, but never even considered it 
for coding and don't really like it.



More information about the Digitalmars-d mailing list