5 ms·
> ergonomics of not having an early return I wonder who came up with this idea first. I find obvious early returns incredibly ergonomic.
by orthoxerox 5mo ago
> ergonomics of not having an early return
I wonder who came up with this idea first. I find obvious early returns incredibly ergonomic.
- voidUpdate 5mo agoWikipedia says that "guard clause" was a term invented by Kent Beck, but that the actual practice was used since at least the early 60s
- orthoxerox 5mo agoNo, I meant the idea that guard clauses are antipatterns and your subroutine should have a single implicit return.
- voidUpdate 5mo agoSorry, I misread. Need more coffee