Monads model affects in arbitrary computation. Applicatives model effects in com...

@rntz@recurse.social

Monads model affects in arbitrary computation. Applicatives model effects in computation with a static tree-shaped dependency structure.

What about DAG-structured computation, eg. spreadsheets? In particular, where we _care_ about the difference between (let x = e in (f x, g x)) - which performs e's effect once - and (f e, g e) - which performs e's effect twice?

This Q prompted by a bsky post from @qualmist: bsky.app/profile/joshuahhh.com

see this typst doc for more detail: typst.app/project/rnf1QQHdGeV7