News for hackers. Stuff that matters.
Re:So You Want to Write Your Own Language (2014) by quchen on Friday May 19, 2017 @02:39PM (#14378280)
The key insight is that all languages have monads, but very few have monad. It’s up to the programmer to see the pattern in e.g. Javascript. But other than having higher kinds there’s not much that keeps most languages from having them the same way e.g. Haskell has.

The »plain monad« part was directed at Javascript, not Haskell. Haskell, like JS, can work perfectly fine without monads, but it still works perfectly fine with them ;-)

Re:So You Want to Write Your Own Language (2014) by KirinDave on Friday May 19, 2017 @02:47PM (#14378348)
How did Haskell do IO effects before monadic computation? I ask because any such influence predates my exposure to the ecosystem.
Re:So You Want to Write Your Own Language (2014) by dietrichepp on Friday May 19, 2017 @04:11PM (#14378971)
Re:So You Want to Write Your Own Language (2014) by quchen on Saturday May 20, 2017 @05:02AM (#14381563)
Even without knowing about monads, you can simply implement »bindIO« and »pureIO«. That’s what most other languages do – they have bindMaybe, bindList, bindAsync, …