News for hackers. Stuff that matters.
Re:Python multi-level break and continue by artificialidiot on Saturday September 03, 2022 @04:06AM (#32699786)
I think it boils down to "early exit" v.s. "single return" style. More than likely, the average programmer will pick the style they've been taught at school or whichever was preached more.

I think early exit constructs improve readability and python already offers a lot of syntax open to abuse at this point. (things you can write with nested list/dict comprehensions with if conditions/expressions scattered..)

There are no comments on this comment yet.