4 ms·
Haskell uses `otherwise`. Example use: greater x y | x > y = x | otherwise = y In Haskell's case, this is a conditional syntax that's alternativ
by jolmg 4y ago
Haskell uses `otherwise`. Example use:
greater x y
| x > y = x
| otherwise = y
In Haskell's case, this is a conditional syntax that's alternative to if-then-else, so `else` was already taken. `otherwise` is just a conventional constant for `True` that's chosen for readability.
- Y_Y 4y agoWhich lets you write gems like: if otherwise then not
- deleted 4y ago[deleted]