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.
beat me to it too, it’s a meme of course but the advantage compared to comments is thay you get syntax highlighting 😁
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