logoalt Hacker News

voidUpdatetoday at 2:15 PM1 replyview on HN

Wikipedia says that "guard clause" was a term invented by Kent Beck, but that the actual practice was used since at least the early 60s


Replies

orthoxeroxtoday at 2:18 PM

No, I meant the idea that guard clauses are antipatterns and your subroutine should have a single implicit return.

show 1 reply