2 ms·
Exceptions with throw/catch are 90% of the way to delimited continuations so in a sense everyone is already using a close subset of it! They could be useful in
by matheusmoreira 1y ago
Exceptions with throw/catch are 90% of the way to delimited continuations so in a sense everyone is already using a close subset of it!
They could be useful in typical exception handling contexts where the operation could be retried. An operation involving a file read that fails due to file not being found could be body could be resumed with dummy data or data sourced from alternative locations. Lisps also like to show a REPL and allow the programmers to plug in the value themselves.