Is the world coming to an end?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Apr 2 19:16:22 PDT 2011


On 4/2/11 7:52 PM, bearophile wrote:
> Michel Fortin:
>
>> The new syntax is certainly usable, it's just inelegant and hackish.
>> Its your language, it's your choice, and I'll admit it won't affect me
>> much.
>
> My suggestions for Walter are:
> - To turn 01 .. 07 too into errors;
> - to deprecate the octal! Phobos template.
> - To introduce the 0o leading that works from 0o0 to the uint.max;
> - To change the new error message, so it suggests to use 0o.
> - To ask opinions to the community here next time before changing things in D2/D3 :-)
>
> Bye,
> bearophile

I think a point the size of China is being missed here.

"octal" is not only an alternative notation, it is an example, a model 
for defining other user-defined literals. Adding 0o or whatever would 
solve the issue of defining an obscure literal, whereas octal opens the 
door to a host of possibilities to define user-defined literals.

std.conv.octal _is_ the work of the community, written by myself and 
others (could you please identify yourselves)?


Andrei


More information about the Digitalmars-d mailing list