Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Thu, 26 Sep 2024 20:36:11 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <20240826083330.00004760@gmail.com> <20240826155113.000005ba@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 26 Sep 2024 22:36:12 +0200 (CEST) Injection-Info: dont-email.me; posting-host="bdf142e3b9878dfa03dc2566703c0971"; logging-data="396911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kyA+WECd8nzn2HWgZna+Q" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:MELOWspEuxB/Zfn9n99T16wor3g= Bytes: 2450 On Thu, 26 Sep 2024 18:00:09 -0000 (UTC), candycanearter07 wrote: > Lawrence D'Oliveiro wrote at 22:48 this Saturday (GMT): > >> On Sat, 7 Sep 2024 18:30:03 -0000 (UTC), candycanearter07 wrote: >> >>> Subjectively, I prefer early returns over nested ifs: >> >> Nested ifs nest, early returns don’t. > > Right, they remove some nesting which makes it easier to read. Nestability helps with refactorability.