News for hackers. Stuff that matters.
Re:You've just inherited a legacy C++ codebase, now what? by kccqzy on Thursday February 29, 2024 @04:02PM (#39555034)
I think `#if` and `#ifdef` are not good ideas because they prevent the compiler from seeing them in the first place. A better solution is just `if (false)` which is nestable, and the code is still checked by the compiler so it won't bit rot.

There are no comments on this comment yet.