3 ms·
Perhaps most notably, Haskell has the same behavior as LiveScript. EDIT: Derp, that's not true. (- 2) == (-2)
by PeCaN 11y ago
Perhaps most notably, Haskell has the same behavior as LiveScript.
EDIT: Derp, that's not true. (- 2) == (-2)
- pklausler 11y agoTo be clear: (- 2) is not a section in Haskell, it's effectively a numeric literal because '-' is Haskell's only prefix operator. Haskell has a 'subtract' function that's defined in its Prelude that is used where a section for (-) would be useful. It's a minor wart, and probably never going to be fixed. EDIT: clarified