Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Early exit is a tail call optimization of procedural languages. Parent comment
In general, of course not. I think that both single-return and multiple-return styles can be valid and readable. But of course both can be obfuscated.
But give me a particular piece of logic and I might give an opinion on which style I would use for it.
& if you think YAGNI is harmful, you should see the pointless code from people who have never thought that way!
There are no comments on this comment yet.
In general, of course not. I think that both single-return and multiple-return styles can be valid and readable. But of course both can be obfuscated.
But give me a particular piece of logic and I might give an opinion on which style I would use for it.
& if you think YAGNI is harmful, you should see the pointless code from people who have never thought that way!