May 13, 2014 at 1:37 AM
Edited May 13, 2014 at 1:38 AM
I think an '0b' prefix for binary is fine and, as I said in the octal number thread, would like to see '0t' or '0o' introduced for octal even if it's only really useful when dealing with legacy code nowadays.
I don't like
; if I saw
#define BUILD_TIME 0157
unsigned int build_time = 0t##BUILD_TIME;
I would interpret the code as setting the build time to one hundred and fifty-seven (the
prefix being necessary to prevent
0157 from being interpreted as octal!) rather than one hundred and eleven.
If I had by druthers, the octal prefix would be
[many assemblers historically have used
for octal, since even in uppercase form it's visually distinct from
; the lowercase form of
hanging down below the baseline would probably draw more attention than
], and the old-style zero-only prefix would be deprecated. I have no idea what possessed Mr. Gosling to allow
as a representation for twenty-five.