Sujet : Re: Python (was Re: I did not inhale)
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 28. Aug 2024, 21:29:18
Autres entêtes
Organisation : None to speak of
Message-ID : <87ttf4bdcx.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13)
Lawrence D'Oliveiro <
ldo@nz.invalid> writes:
On Tue, 27 Aug 2024 19:10:57 -0700, Keith Thompson wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Tue, 27 Aug 2024 14:49:19 -0700, Keith Thompson wrote:
I've done some Python programming, and it wouldn't occur to me to add
"#end" comments. If I saw them in a code review I'd probably
recommend deleting them.
>
Give them a try. They simplify a lot of situations. I already posted a
reasonably complex example in this thread. Go have a look at it, and
see what happens when you delete those comments.
No, I won't be doing that.
>
I wonder why? You expressed an opinion about them, yet when I try to find
out more about why you feel that way, you run away.
I didn't intend to run away, I was just declining to engage.
But ok, I found your post and removed all the #end comments. I found it
just as readable without them as with them.
I'm very much aware that different people perceive things differently.
(An unrelated example: I find "Yoda conditions" like `if (42 == value)`
deeply annoying, but some people like them.) If #end comments help you,
I'm not going to tell you not to use them. But be aware that (a) other
readers might dislike them, and (b) if you're going to be reading Python
code written by others, you'll need to be able to get along without
them.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */