News for hackers. Stuff that matters.
Re:Functional Programming in Elixir with Witchcraft by elevader on Wednesday February 09, 2022 @08:43AM (#30272492)
I think this is akin to the general problem people face when trying to convey why Haskell (or a Haskell-like library) is useful/awesome to them to a target audience that isn't already familiar with the subject. Simple and straightforward examples struggle to show any benefits that generalizations could/would provide. Complex examples are hard to explain without loosing most of the audience in terminology they don't understand. Or they just go on for way too long because they constantly drift off into explanations that don't really move the overarching subject forward.
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' ;).