News for hackers. Stuff that matters.
Re:My Beef with RuboCop by wlll on Thursday November 19, 2020 @11:35AM (#25151171)
Wether the programmer chose to do something is a large part of the issue here.

An explicit return says "I chose to do this". An implicit return in these examples says "There may or may not have been a choice made" and that's the problem. If you rely on the assumption that a choice was made, you add risk.

There are no comments on this comment yet.