Number literals (Was: Re: Case Range Statement ..)
Matti Niemenmaa
see_signature at for.real.address
Tue Jul 7 21:59:14 PDT 2009
BCS wrote:
> 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 )
http://d.puremagic.com/issues/show_bug.cgi?id=1466
More information about the Digitalmars-d
mailing list