top | item 36394629

(no title)

lpghatguy | 2 years ago

This is incredibly funny and also brilliant: toss/return is an implementation of algebraic effects!

discuss

order

gpderetta|2 years ago

call/cc as the only control flow primitive!

firstlink|2 years ago

Algebraic effects use delimited continuations (and this appears to match toss/return). Call/cc captures an undelimited continuation. Totally different.

dirkt|2 years ago

Also called "continuation monad", which can be proven to be universal.

So, no surprise.