Comments

Dave Brueck dave at pythonapocrypha.com
Wed Apr 2 16:16:05 EST 2003


On Wed, 2 Apr 2003, Roy Smith wrote:

> >>> 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.

Roy, may I interest you in a syntax-highlighting editor? <0.5 wink>

Seriously though, those problems you describe have pretty much been
eradicated by modern editors because the color of the text just screams
"this has been commented out!!".

-Dave





More information about the Python-list mailing list