DEV Community

Discussion on: Return statement is ok

Collapse
 
ardunster profile image
Anna R Dunster

I cut my teeth on python (explicit is better than implicit). I don't like code that returns without explicitly telling me that's what it's doing; in that case I have to parse the entire context and syntax to know "okay, this line is returning the value of this function" rather than, you know, just having a return in there.
I guess it can make sense for super small and simple functions, but I can't understand why anyone would seriously advocate for not using return across an entire language.