News for hackers. Stuff that matters.
Re:Monads for functional programming (1995) [pdf] by chadcmulligan on Sunday May 06, 2018 @11:01PM (#17010101)
well thanks very much for that, you have piqued my curiosity (again :-)), time to get out that haskell book, and finish it this time. If nothing else its a whole new set of language constructs that I'm sure will come in handy some day, I am starting to see how they could be used. The idea of being able to stack monads to do something sounds intriguing. Or is there a better language to learn?
Re:Monads for functional programming (1995) [pdf] by KirinDave on Monday May 07, 2018 @01:26AM (#17010576)
You might start with PureScript, which is much smaller and runs in browsers and on Node.

There's also Idris if you want to see what driving a not-quite-complete future hovercar is like.

Re:Monads for functional programming (1995) [pdf] by chadcmulligan on Monday May 07, 2018 @02:23AM (#17010730)
thanks, think I'm starting to see, so with one sort of Monad I can chain a bunch of functions together and carry along things like an error value (or a null), and just skip out of the chain if an error occurs but without worrying about a bunch of if tests. That seems useful :-). The do syntax makes the chaining a lot more friendly than in other languages.