News for hackers. Stuff that matters.
Re:Avoid Else, Return Early (2013) by platinumrad on Monday March 26, 2018 @01:10PM (#16680507)
Most functional languages also allow you to do something like this which is pretty much the same idea as guard clauses:

  foo 0 = 0
  foo 1 = 1
  foo n =
    ...

There are no comments on this comment yet.