Re:What Is Good About Haskell?
by HelloNurse on Thursday October 03, 2019 @11:24AM
(#21148071)
They are clearly grouping "Tree a", but do they mean that it is optional?
Why would you assume it's optional? In which popular programming language do parentheses mean "this is optional"? When you read a formula such as
(x + 1) / 2
do you assume part of it is optional?
Currying makes no sense in type definitions. It's like saying that in Java you aren't sure if "String name" will run something, "given Java's cheerful taste for running things".
To me, it's obvious the parentheses in "(Tree a)" are grouping things, which is the most immediate (and correct) interpretation, but I'll agree this is more debatable.