Re:Ask HN: Will the committee that built Common Lisp make a ...
by lispm on Friday April 21, 2017 @03:27PM
(#14168591)
Monads?
[ Parent
| on HN ]
Re:Ask HN: Will the committee that built Common Lisp make a ...
by jerf on Friday April 21, 2017 @03:47PM
(#14168821)
http://marijnhaverbeke.nl/monad.html
Getting monads into Lisp in a useful way would require the introduction of features that would certainly make it a different language. You may consider this a feature but you'd be arguing with a lot of people who consider it a bug. (I mean that sentence very seriously; no sarcasm, no joke, it is an accurate description of the situation, nor am I implying I would find the idea horrifying... it would simply be a quite significant change to the core type system.)
Re:Ask HN: Will the committee that built Common Lisp make a ...
by bykovich on Friday April 21, 2017 @04:51PM
(#14169343)
Are monads an /advance/, or are they just a language feature that might be nice in some cases, pointless or harmful in others -- like any other feature?
Re:Ask HN: Will the committee that built Common Lisp make a ...
by dreamcompiler on Saturday April 22, 2017 @02:49AM
(#14171413)
Some monads like the maybe monad would be a dramatic improvement over just defaulting everything to nil everywhere. Likewise error monads would nicely complement the existing CL error mechanism.
You can get some monad behavior in CL now. Bind is fairly easy to write in CL but unit is messy. And CL's lack of automatic currying doesn't help.