News for hackers. Stuff that matters.
Re:My Beef with RuboCop by dragonwriter on Thursday November 19, 2020 @04:18PM (#25154483)
> The point the authour is trying to make is that guard clauses convey a different intent from a standard branch.

This is a matter of idiom and convention, and I disagree with the author on the specific point in Ruby. Were it Python, I would agree with it. (Well, not on "guard clauses" per se, but the significance of an implicit vs. explicit nil/None return.)

It is certainly an issue for polyglot programmers that as well as differences in syntax and behaviorally-visible semantics, language communities have different idioms that impact the communicative semantics of code (having been deeper into Ruby before getting more into Python, it took my a while to stop writing Python with Ruby conventions.)

There are no comments on this comment yet.