News for hackers. Stuff that matters.
Re:My Beef with RuboCop by xorcist on Thursday November 19, 2020 @08:32AM (#25149252)
Strongly agree.

The point of stating an explicit nil in the article must be to reduce the chance of future changes erroneously leaving something on the stack, without realizing the implicit nil.

The early return in your version makes it much more obvious why it is written the way it is.

There are no comments on this comment yet.