Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 ;-)



How did Haskell do IO effects before monadic computation? I ask because any such influence predates my exposure to the ecosystem.



Even without knowing about monads, you can simply implement »bindIO« and »pureIO«. That’s what most other languages do – they have bindMaybe, bindList, bindAsync, …




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: