Re:Monads and Intensionality – Lucid is not an aberration
by eli_gottlieb on Wednesday August 05, 2020 @12:15AM
(#24057209)
Wouldn't infinite streams more naturally form a comonad than a monad, though? They're coinductive types.
[ Parent
| on HN ]
Re:Monads and Intensionality – Lucid is not an aberration
by lmm on Wednesday August 05, 2020 @12:44AM
(#24057309)
Depends how you're using them. Apparently Lucid finds this "diagonal" approach to streams - which is not the normal way of streams in most programming languages - to be useful, in which case the monad model is a good fit.