Number literals (Was: Re: Case Range Statement ..)
Jarrett Billingsley
jarrett.billingsley at gmail.com
Tue Jul 7 19:28:46 PDT 2009
On Tue, Jul 7, 2009 at 8:08 PM, bearophile<bearophileHUGS at lycos.com> 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?
Totally agree. They're cruft that just complicate lexical analysis.
> Regarding number literals, I'm also for:
> B) turning the current octal syntax into a syntax error and introducing a safer octal syntax (see Python 3);
Or just drop octal altogether. Outside of chmod, when is there any
legitimate need for it these days?
More information about the Digitalmars-d
mailing list