Is the world coming to an end?

KennyTM~ kennytm at gmail.com
Sun Apr 3 02:31:23 PDT 2011


On Apr 3, 11 09:44, Daniel Gibson wrote:
> Am 03.04.2011 03:39, schrieb Walter Bright:
>> On 4/2/2011 4:52 PM, Daniel Gibson wrote:
>>> Am 03.04.2011 01:50, schrieb Walter Bright:
>>>> On 4/2/2011 3:27 PM, ulrik.mikaelsson at gmail.com wrote:
>>>>> As I wrote, I think it's great that 010 != 8 anymore.
>>>>
>>>> 010, etc., will now be errors. They will not be 10 decimal.
>>>>
>>>> Also, the literals 00, 01, ..., 07 will still be accepted without complaint. 08,
>>>> 09, etc. will of course be errors.
>>>
>>> That feels pretty inconsistent.
>>
>> It is inconsistent. One of the interesting things about "good" user interface
>> design is it is awfully inconsistent.
>>
>> The thing is, I ran into a bunch of D code that used 01, 03, etc. They weren't
>> octal, and it seemed a pity to break it.
>
> They were octal, it just didn't make a difference. I don't see a reason to use
> them (if not as octals) anyway.
>
> Time will tell but I wouldn't be surprised if sooner or later somebody wonders
> why 00, 01..07 work, but 08 etc don't and complains about weird corner cases ;)
>
> Cheers,
> - Daniel

No need to be surprised, people are already complaining languages 
supporting the 0nnn notation that why 08, 09 does not compile. :)

e.g.

08 in Python 2: 
http://stackoverflow.com/questions/336181/python-invalid-token
09 in Java: 
http://stackoverflow.com/questions/970039/09-is-not-recognized-where-as-9-is-recognized


More information about the Digitalmars-d mailing list