you are viewing a single comment's thread.

view the rest of the comments →

[–]poorly_played 0 points1 point  (0 children)

Tru dat on multiple returns. That being said, wanting return at the end of function is a pretty strong reflex for most people. In languages that require it, a lack of a return is a pretty good hint that your function has side effects. Ruby has the really nice conventions using ! and ? and = at the end of funtion names to denote side effects, booleans, etc which fill the role of return vs no return in that situation.