Deutsch English Français Italiano |
<varca9$b7bo$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Fri, 30 Aug 2024 02:55:06 -0000 (UTC) Organization: A noiseless patient Spider Lines: 21 Message-ID: <varca9$b7bo$2@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <va51ok$3tqr9$1@dont-email.me> <va5ec2$3vluh$1@dont-email.me> <va6q4g$c1a7$1@dont-email.me> <va6rpa$c6bg$1@dont-email.me> <va6se9$cb8e$1@dont-email.me> <20240826083330.00004760@gmail.com> <vaises$2k7o6$2@dont-email.me> <20240826155113.000005ba@gmail.com> <wwvo75eicla.fsf@LkoBDZeT.terraraq.uk> <vak9k9$2ujrs$1@dont-email.me> <valgpu$34s18$1@dont-email.me> <87y14hd4bk.fsf@nosuchdomain.example.com> <valnei$35rt8$2@dont-email.me> <87ikvlcs7i.fsf@nosuchdomain.example.com> <vamclm$3c4ke$1@dont-email.me> <87ttf4bdcx.fsf@nosuchdomain.example.com> <vaoaak$3l470$3@dont-email.me> <875xrkb2iq.fsf@nosuchdomain.example.com> <vapnu2$3v4l8$1@dont-email.me> <vaquop$5ioe$2@dont-email.me> <87zfou9926.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 30 Aug 2024 04:55:06 +0200 (CEST) Injection-Info: dont-email.me; posting-host="c509a17e16dee277c625dc90ee6d135d"; logging-data="367992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LMU5H94fVzPxrZxZDbyx4" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:RKcbwBuC5b+SbNx5I9Xd2kwHQ/Q= Bytes: 2700 On Thu, 29 Aug 2024 16:57:21 -0700, Keith Thompson wrote: > Lawrence D'Oliveiro <ldo@nz.invalid> writes: > [...] >> Think about why you bother to indent code in languages where the >> compiler ignores such indentation anyway: it means you are expressing >> the structure of code in two different ways, one via statement >> brackets, and the other via indentation. This redundancy aids in >> understanding that the code does what you think it does. >> >> Python gets rid of this redundancy, by having the compiler take notice >> of the whitespace and removing the statement bracketing symbols. So I >> put it back, by adding statement bracketing symbols that the compiler >> ignores. Another reason for “#end” comments is they give me something to jump to in the editor. I have Emacs commands defined to move quickly between lines with matching indentation. Since I have these at the beginning and end of every compound construct, that allows me easy navigation around my code.