Why do not have `0o` prefix for octal numbers?

David Nadlinger see at klickverbot.at
Wed Sep 19 09:10:27 PDT 2012


On Wednesday, 19 September 2012 at 16:02:41 UTC, Hauleth wrote:
> Some time ago I've asked on SO why most languages have `0` 
> prefix for octal numbers. My opinion is the same as D designers 
> that it cause a lot of bugs, but why octal numbers are avaible 
> only by using `std.conv.octal`?

How often do you use octal numbers? The reason is simply to avoid 
language feature creep where a library solution is perfectly 
acceptable.

David


More information about the Digitalmars-d mailing list