Sujet : Re: Python (was Re: I did not inhale)
De : candycanearter07 (at) *nospam* candycanearter07.nomail.afraid (candycanearter07)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 26. Sep 2024, 19:00:09
Autres entêtes
Organisation : the-candyden-of-code
Message-ID : <slrnvfb7pp.ie8p.candycanearter07@candydeb.host.invalid>
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 : slrn/1.0.3 (Linux)
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.
-- user <candycane> is generated from /dev/urandom