18 ms·
F# also has monads. However both Haskell and F# has syntactic sugar which makes the use of monads convenient. Without some syntactic sugar, using mondas require
by olavk 12y ago
F# also has monads.
However both Haskell and F# has syntactic sugar which makes the use of monads convenient. Without some syntactic sugar, using mondas requires chains of nested lambdas which quickly becomes convoluted and unreadable.
E.g. you could use monads in JavaScript, but it would probably be simpler to solve the same problem without monads.
- eru 12y agoYou can use the chain of nested lambdas for monads in Haskell easily. That's bearable mostly thanks to the way lambda syntax works.