Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bart Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Mon, 26 Aug 2024 23:51:40 +0100 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org> <87il0lldf8.fsf@tudado.org> <20240815182717.189@kylheku.com> <20240826083330.00004760@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Aug 2024 00:51:40 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0eb40e535de99d049ec5580a004404e4"; logging-data="2784141"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aDmw4Mej+/w3sO92CbV7H" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:4mCDFiBBq8gUZQ4EwXSGThsTFIE= In-Reply-To: Content-Language: en-GB Bytes: 2820 On 26/08/2024 22:35, Lawrence D'Oliveiro wrote: > On Mon, 26 Aug 2024 08:33:30 -0700, John Ames wrote: > >> ... the simple fact that Guido & co. made a boneheaded choice like that >> is the reason I'll never be able to *respect* it, even when I do find >> myself using it. > > I restore the redundancy by using “#end” comments. E.g. a seriously > nontrivial case: This might the human reader but the redundancy really needs to be supported by the language. Here, that s2 line has been knocked out of place; the indent is missing. But the language can't detect it, even with #end; it makes s2 unconditional: if c: s1 s2 #end With language support: if c: s1 s2 end Here the redundancy means the compiler knows both s1 and s2 are in the same conditional block, and it can choose to report an indentation inconsistency.