Hacker News new | ask | show | jobs
by lelanthran 415 days ago
> The practice of writing code has clearly shown that early returns lead to better structured code.

While I share that opinion, I recognise that it is, in fact, an opinion.

> It's not even disputable anymore.

For it to not even be disputable anymore you need a mountain of overwhelming evidence in the form of peer-reviewed double-blind studies. IIRC, there's maybe 2 papers that have very weak and never-reproduced evidence for early returns leading to better code in terms of cyclometric comlexity (not even "better structured", which is pretty subjective).