[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A little comment randomness
- From: Majic <majic.one@...>
- Date: Fri, 19 Feb 2010 06:52:35 -0800
Convention, at least in C++, says we should take the route of the most
line noise :p Confusing syntax prevails!
On Fri, Feb 19, 2010 at 6:43 AM, Luiz Henrique de Figueiredo
>> *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
> #if 0
> std::cout << "One" << std::endl;
> std::cout << "Two" << std::endl;
> and toggle 0 to 1. It seems much clearer to me.