Hacker News new | ask | show | jobs
by bobbylarrybobby 1435 days ago
if some_edge_condition: return x
1 comments

I’ve written both professionally and personally found Python makes it harder to see the early out, which makes it less valuable/explicit as a guard.

The Ruby pattern is clear up front on what it is rather than being a bag of conditions that you have to get to the end of to discover what they trigger.