Sujet : Re: Python (was Re: I did not inhale)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 26. Sep 2024, 21:36:11
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vd4gjr$c3jf$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
User-Agent : Pan/0.160 (Toresk; )
On Thu, 26 Sep 2024 18:00:09 -0000 (UTC), candycanearter07 wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> 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.