Hacker News new | ask | show | jobs
by lacrosse_tannin 1542 days ago
what the heck is the reverse state monad
1 comments

It passes state backwards, so that changes are visible to previous reads. If this sounds like it has problems with causality - it can. You can end up in an infinite loop when a calculation ends up depending on its own result. But sometimes it solves a problem very neatly. Being able to express it is one of the advantages of making evaluation order independent of declaration order.