9 ms·
Does that happen because Haskell has significant whitespace? I suppose you might get used to the way it requires you to line things up and come to like it.
by WildUtah 15y ago
Does that happen because Haskell has significant whitespace? I suppose you might get used to the way it requires you to line things up and come to like it.
(let
((a b)
(c d))
foo)
Seems odd to me because the (a b) and (c d) are semantically the same but can't line up. Or, they can't line up without spending a new line on each function call, as if this were Java or something.
Don't worry; I know Haskell isn't Java-like. (Haskell is Python plus Perl: Significant whitespace plus polymorphism based on external context of the expression. Written in the APL charset.)
- hollerith 15y ago>Does that happen because Haskell has significant whitespace? You can do the same thing in Lisp and Scheme, where of course whitespace is not significant. If you're asking if Haskell's significant whitespace somehow made it more probable that programmers would do it, the answer is, I do not know.
- arethuza 15y agoYour comment got me wondering if you could make whitespace significant in Lisp - perhaps via a reader macro....