3 ms·
> 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 multipl
by SideburnsOfDoom 11y ago
> 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!