Re:Monads without pretension (2011)
by elclanrs on Friday September 12, 2014 @04:48PM
(#8310377)
In dynamic languages I don't see the need to create a Monad interface. I'd create classes/objects and simply use instances of those objects. As long as they conform to the desired interface, and you can check their relationships, then it should work; and use monkey-patching if necessary, embracing the dynamic nature of the language. I don't think it is possible to fully translate Haskell examples without the types, but you can adapt the ideas to other languages and get very similar functionality, in JavaScript for example:
[ Parent
| on HN ]
There are no comments on this comment yet.