News for hackers. Stuff that matters.
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.
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.
Re:Monads and Intensionality – Lucid is not an aberration by codebje on Wednesday August 05, 2020 @10:38PM (#24067661)
How else could you combine infinite streams?
Re:Monads and Intensionality – Lucid is not an aberration by lmm on Thursday August 06, 2020 @03:50AM (#24068943)
Streams as I've seen them used in other languages are possibly-terminating, d* is a stream of the single value d and D -> D* is flattening the stream of streams.