Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Roll your own minilanguages with mini-interpreters (1989). Parent comment
p = newPerson(); w = walk(p); t = talk(p, w); s = shout(p, t);
seq(shout, seq(talk, seq(walk, seq(newPerson())))
newPerson() seq walk seq talk seq shout
If you can omit `w =`, `t=`, and `s=` you have an applicative, rather than a monad. Ie., the operations being sequenced are independent.
There are no comments on this comment yet.
If you can omit `w =`, `t=`, and `s=` you have an applicative, rather than a monad. Ie., the operations being sequenced are independent.