Re:Reading Simple Haskell
by hoprocker on Saturday December 09, 2017 @02:34PM
(#15887594)
Agreed -- I found Haskell most confusing at first because of the lack of syntax. My brain kept wondering where the rest of the syntax was. Not to be too dramatic, but I think Haskell is kind of like programming "poetry" in this regard.
[ Parent
| on HN ]
When I first start I though there was so MUCH syntax, (->), (<*>), (<$>), (>>=), (.), ($), etc
I realized pretty early on all these were just functions, that was cool experience for me. Even the types are sort of functions.
Re:Reading Simple Haskell
by lalaithion on Sunday December 10, 2017 @03:03AM
(#15890491)
One fun thing is how -> is basically just an infix operation that takes two types as arguments and returns a new type.
add :: (->) Int Int add x y = x + y