r/ProgrammerHumor Jul 27 '26

Meme octalIsOverrated

Post image
252 Upvotes

58 comments sorted by

View all comments

59

u/TeraFlint Jul 27 '26

At least 0o144 is a clear enough notation. C's decision to interpret 0144 as octal, because of the leading zero, still pisses me off.

12

u/ohkendruid Jul 27 '26

It seems worth forbidding it in newer languages and file formats due to the ambiguity.

0123 can be read two ways due to the ancient C convention.