It’s common enough that it’s supported like a comment by numerous syntax highlighting schemes, and has the added benefits of guaranteeing that the code won’t be compiled as well as encapsulating any pre-existing block comments. Conversely, if (false) is total garbage.
Very disappointing not to see an #if 0 (my personal go-to for decades) in this meme. 😞
Damn, you beat me to it.
It’s common enough that it’s supported like a comment by numerous syntax highlighting schemes, and has the added benefits of guaranteeing that the code won’t be compiled as well as encapsulating any pre-existing block comments. Conversely, if (false) is total garbage.
If (false) is good because it is compiled so it doesn’t get stale.
“you’re not wrong, you’re just an asshole”
Fair enough, I do love being contrarian
Tell this to my -Wall -Werror
this is what I’m doing too, so at least it’s not compiled and better than a /* */ as you can keep all the code intact in your #if 0