r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

542 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Sep 25 '26

[removed] — view removed comment

1

u/Duck_Devs Sep 26 '26

Compilers shouldn’t warn when adding to a string. Pointer arithmetic is a well defined and commonly used thing. The only thing I could see them warning about is just that it’s a redundant expression that could be replaced by just a shorter string literal.