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

BCS none at anon.com
Tue Jul 7 21:22:42 PDT 2009


Hello Andrei,

> 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
> 

Dropping them makes lexing cleaner: strictly "5..5" should lex as "5." ".5" 
based on maximal munch ( http://en.wikipedia.org/wiki/Maximal_munch ) 





More information about the Digitalmars-d mailing list