by Robin_Message · 13y ago · 0 comments
/*/ Version one, currently commented
/*/ Version two, currently active /**/
And a single star switches from version two to version one.But I agree this shouldn't be left in production code; it's just a handy trick for switching between two blocks of code†. An #ifdef is also good, but that's C/C++ only.
† Whoever suggested that some editors can comment a block of code missed the point utterly - which is to switch between code blocks easily.
And every language has the IF construct.
And of you are flipping between two implementation so frequently, your actual problem is that you have no idea how your program works.