Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chasd00
· 8y ago · 0 comments
multiple return statements should be avoided. It makes the code harder to read. One entry, one exit.
Comments
[–]
make3
8y ago
this is not uniformly true. Scripting languages like Python where you usually don't need to clean up dynamically allocated objects actually suggest early return as part of their official style guides.