Roy Smith schreef:
> Magnus Lycka <[EMAIL PROTECTED]> wrote:
>> An editor that adds/removes '# ' in the beginning of each
>> marked line is fairly bullet proof. Adding e.g. /* to the
>> beginning of a block you want to comment out, & */ to the
>> end, breaks if you have /* */ style comments in the block!
> 
> /* */ also allows for some truly spectacularly bad coding practices.  Not 
> long ago, I ran into some real-life code where a previous developer had 
> commented out about 50 lines of C++ code by just putting a /* at the top 
> and a */ at the bottom.  I was tearing my hair out trying to figure out how 
> the code worked until I noticed what he had done.

That happened to me a few times. These days I use an editor with syntax 
highlighting that shows comments in another color than code. That helps 
tremendously.

-- 
If I have been able to see further, it was only because I stood
on the shoulders of giants.  -- Isaac Newton

Roel Schroeven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to