[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A little comment randomness
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 19 Feb 2010 12:43:12 -0200
> *laughs* In case you're curious, the original C++ comment abuse looked
> like this:
> std::cout << "One" << std::endl;
> std::cout << "Two" << std::endl;
> You just change the first /*/ to /**/ to toggle, and the second /*/ to
> // to disable both. I actually believed I couldn't do this in Lua,
> until I read that multi-line comments also supported [=[ ]=] syntax!
I'd rather use
std::cout << "One" << std::endl;
std::cout << "Two" << std::endl;
and toggle 0 to 1. It seems much clearer to me.