Pages

2011-08-03

Haskell's otherwise is function, not language keyword


Inside Prelude, there is:

otherwise :: Bool
otherwise = True


For guards, it's more readable.

No comments:

Post a Comment