News for hackers. Stuff that matters.
Re:Early exit is a tail call optimization of procedural lang... by SideburnsOfDoom on Monday December 14, 2015 @11:45AM (#10732080)
> You can't possibly assert that writing code in one or another way is easier or harder

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.