PEP scepticism

phil hunt philh at comuno.freeserve.co.uk
Sat Jun 30 07:13:02 EDT 2001


On Sat, 30 Jun 2001 01:09:03 GMT, Rainer Deyke <root at rainerdeyke.com> wrote:
>"phil hunt" <philh at comuno.freeserve.co.uk> wrote in message
>news:slrn9jq3rc.qg9.philh at comuno.freeserve.co.uk...
>> On Fri, 29 Jun 2001 17:43:34 -0400, Tim Peters <tim.one at home.com> wrote:
>> >Or the other existing method:
>> >
>> >    # This is a multi-line comment.
>> >    # Although it sure looks like a sequence of
>> >    # single-line comments <wink>.
>>
>> This is truly bad, because it makes it harder to add new lines;
>> you have to type "# " repeatedly when adding new comment text, which
>> breaks the flow of thought -- at least it dores for me.
>
>Strange.  In C++, I always use '//' for multiline comments in favor of
>'/**/'.  ('//' in C++ is equivalent to '#' in Python.)  This makes the
>comment more readable IMO.  Why not just type the comment text first, and
>add '#' marks later?

That's what I do. I still find it an irritating hassle.

I appreciate your point that beginning all comment lines with //
makes for visibility. When I have long multi-line comment, I
usually enclose them like this:

/*********
Start of long comment

 :
 :
 :

end of long comment
*********/

Which I find nice and visible.


-- 
## Philip Hunt ## philh at comuno.freeserve.co.uk ##







More information about the Python-list mailing list