Comments
Roy Smith
roy at panix.com
Wed Apr 2 14:03:42 EST 2003
>>> What are the reasons for not having multi-line comments?
Multi-line comments are evil. I grep up on C's /* */ comments, so
this is not a case of "you like what you grew up with".
The first time you spend a half-hour trying to understand a block of
ugly code and finally get to the end and find a "*/", you'll
understand why they're evil.
The first time you accidentally type "* /" instead of "*/" and wonder
why your program still compiles but is suddenly doing strange stuff,
you'll understand why they're evil.
Any decent editor will let you stick "//" or "#" or ";" in front of
every line in a block of code as quickly as you could surround it with
/* */ markers.
More information about the Python-list
mailing list