Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by voidUpdate

2 hours ago

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

2 comments

voidUpdate

Reply

orthoxerox  2 hours ago

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

  • voidUpdate  2 hours ago

    Sorry, I misread. Need more coffee

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities