multiline comments

rx do_not_use_this_email at hotmail.com
Wed Apr 19 13:41:39 EDT 2006


"Edward Elliott" <nobody at 127.0.0.1> wrote in message 
news:URk1g.72511$dW3.48789 at newssvr21.news.prodigy.com...
> Ben Finney wrote:
>> Indeed. Using revision control means never needing to comment out
>> blocks of code.
>
> Typing (* and *) on a few line will always be quicker, easier, and less 
> confusing than any rcs diffs/restores.  Once you delete the code you can 
> no longer see it or add pieces back in without retrieving it from an 
> external store.  I'm not saying nested comments solve every problem, just 
> that there exists a certain (perhaps small) class of problems they solve 
> particularly well.
>
> Personally, I rarely leave code commented out beyond a single coding 
> session.  But my particular coding habits aren't relevant here.


Well I perfectly agree, and why make a dependence on external tools 
(IDE/CVS) if you can build it into the language with no conflicts by using 
some strange ascii combinations. I'm sure something like:

a()
(#
b()
c()
#)
d()

would be fine. 





More information about the Python-list mailing list