Hacker News new | ask | show | jobs
by hrvach 2682 days ago
Thanks for pointing it out, I'll try to stick to a simple if-else construct in the future!
1 comments

There is certainly no consensus that it's the preferred style. Some designers prefer this explicit (and more verbose) style but others prefer the less verbose one (with default first, business logic next, and reset values at the end).