Is the world coming to an end?

Nick Sabalausky a at a.a
Sun Apr 3 01:05:45 PDT 2011


On Sat, 2011-04-02 at 21:16 -0500, Andrei Alexandrescu wrote:
[ . . . ]
>> 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.
>
>The same goes for 0b... 0x... so why aren't they being removed in favour
>of library based solution?

Because unlike the octal syntax, those are neither error-prone nor 
barely-useful. I agree that consistency is good, but I think it's far 
outweighed in this case by those other concerns.




More information about the Digitalmars-d mailing list