3 ms·
> To understand Monads, we have to first understand Functors, Monoids and the Applicative type classes (type classes are more or less the same as interfaces in
by cryptonector 5y ago
> To understand Monads, we have to first understand Functors, Monoids and the Applicative type classes (type classes are more or less the same as interfaces in Java, C++ and the like).
The parenthetical is extremely important too. What looks like a function call in Haskell is dispatched based on the types of its arguments (yes, functions take just one argument, but be that as it may). This is important to understand. The "methods" available depend on the types of the values being passed to them.
- kaba0 5y agoI tried to write Java-style method invocation wherever possible.
- cryptonector 5y agoRight, but when reading Haskell, one has to know this. It's critical.