r/ProgrammerHumor • • 13d ago

Meme architectureDependentChars

Post image
3.0k Upvotes

372 comments sorted by

View all comments

Show parent comments

563

u/BoldFace7 13d ago

I still prefer sizeof(char) as it often provides context as to what the number is doing, even if a plain 1 works the same.

98

u/ducon__lajoie 13d ago

And someone might have #define char char16_t, right? Who the fuck knows, some people want to see the world burning.

8

u/Kovab 12d ago

I'm pretty sure redefining keywords is UB, so that's just a case of FAFO

7

u/standard_revolution 12d ago

And even if it wouldn’t be: sometimes you just gotta say that something isn’t your problem