Re:Functional Programming in Elixir with Witchcraft
by ReleaseCandidat on Wednesday February 09, 2022 @08:50AM
(#30272561)
> Simple and straightforward examples struggle to show any benefits that generalizations could/would provide.
Using Haskell you can use do-notation (with lists, Maybe and Either) as a simple example that should show the user the advantage of generic monads. (Just don't show them the problems with composability of monads or 'do-notation considered harmful' ;).
Using Haskell you can use do-notation (with lists, Maybe and Either) as a simple example that should show the user the advantage of generic monads. (Just don't show them the problems with composability of monads or 'do-notation considered harmful' ;).