"Ary Manzana" <[email protected]> wrote in message
news:[email protected]...
> On 5/31/11 7:58 AM, Nick Sabalausky wrote:
>> "bearophile"<[email protected]> wrote in message
>> news:[email protected]...
>>> Jesse Phillips:
>>>
>>>> The purpose is commenting out code, but note that there is also
>>>> version(none) { } which is never compiled in.
>>>
>>> version(none) {} is probably the official way to comment out code.
>>> And if you use a versioning system to keep your code, then commenting
>>> out
>>> code is not a so wise thing to do.
>>>
>>
>> Why not? I've never heard of a VCS that went around stripping out all
>> comments.
>
> The question is: why comment and commit code that you can already find in
> the commit history? Then you end up with huge files with things like:
>
> /*
> * Maybe we will use this in a future, this is not working right now
> ...
> ...
> ...
> */
>
> and the code becomes a mess.
>
> So I agree with bearophile here.
But that applies to version(none) {}, too. Maybe I misunderstood bearophile,
I thought he meant "if you use a versioning system to keep your code, then
commenting out code [as opposed to using version(none) {}] is not a so wise
thing to do"