Some languages โ€‹โ€‹and usage for monads

In your opinion, which language, in your opinion, would be the best for implementing monads (Python / Ruby / LISP) ?, can someone tell me about the possible possibilities of using monads (please provide examples), for example, exceptions?

Thanks in advance

+6
scala functional-programming lisp clojure monads
source share
4 answers

All About Monads is a legendary textbook that lists all the standard monads and provides many examples in the real world.

Popular monads that you can find even in the main languages โ€‹โ€‹are Maybe , List and Continuation . Some people also believe that jQuery itself is a monad (as monadic axioms should be).

Regarding the choice of language, Haskell and its derivatives use monads as a fundamental concept, however, as an option, building monads is possible in many modern languages. To get acquainted with the concept of the monad, I would rather choose the language with which I am most comfortable.

+19
source share

In order of preference:

  • Haskell
  • F #
  • Scala
  • FROM#

Monads in decreasing order of simplicity:

  • Maybe (exception)
  • Reader
  • Writer
  • State
  • Parser
  • Asynchronous
+7
source share

For examples, see Philip Wadler, "Monads for Functional Programming."

+1
source share

All Articles