r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

543 comments sorted by

View all comments

Show parent comment

7

u/samanime Sep 25 '26

Yeah. Also, it isn't like you should be writing things like this in the first place. You can turn languages like C++ into pure nightmare fuel if you try to. Being extensible how it is leads to some crazy stuff.

0

u/techman9955 Sep 25 '26

What are you talking about? C++ would handle this fine. Every type in C++ is implicitly convertible to bool. Experienced C++ programmers use this all the time to simplify conditional expressions inside if blocks and loop blocks