Sujet : Re: Python (was Re: I did not inhale)
De : ben (at) *nospam* bsb.me.uk (Ben Bacarisse)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 29. Aug 2024, 13:50:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87ikvjwl1i.fsf@bsb.me.uk>
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)
"Dmitry A. Kazakov" <
mailbox@dmitry-kazakov.de> writes:
On 2024-08-29 12:49, Bart wrote:
>
Without the constraints imposed by the language, I could just write it as:
if a == b:
s1
RETURN
s2
s3
NOW it stands out!
>
In Ada I use indentation for the purpose:
>
if A = B then -- This I will remove later
s1;
end if;
s2;
s3;
>
I remember FORTRAN in its glory days had D-comments. In the first column
the letter D meant a conditional, compiled in the debug mode, ignored
otherwise.
That was a non-standard extension, so it was not really part of FORTRAN
but just some FORTRAN implementations. (The ones I have used didn't
have that, for example.)
-- Ben.