Re: Nice Java/C++ Style commenting
> BTW the way your method does add
> runtime overhead, because you have to
> evaluate all the if(false)'s. They add
> up over time.
Actually, using "if false" and "if true" doesn't add any runtime overhead to Java - when the source is compiled into bytecode, the Java compiler will strip out code that will always evaluate to false, and will just yank the conditional for blocks that will always be true. Setting a DEBUG constant to true or false is a pretty effective way to turn several blocks of code on and off at the source level in Java without runtime overhead or having to worry about commenting/uncommenting all over the source code.