News for hackers. Stuff that matters.
Re:The Roots of Lisp (2001) by wostusername on Thursday January 16, 2020 @06:01PM (#22070016)
In Haskell you usually use `otherwise` for the last guard clause, like so:

     f x | x < 0     = ...
         | otherwise = ...
It took me a while to realize that `otherwise` isn't a keyword or bit of syntax. It's just a variable bound to True: https://hackage.haskell.org/package/base-4.12.0.0/docs/src/G...

There are no comments on this comment yet.