This PR changes the syntax for handlers.
Instead of
handle (...) {
case Op(params, resumption) -> ...
case Return(x) -> x
}
we write
handle (...) {
case <Op(params) => resumption> -> ...
case x -> x
}
We can also write case <Op(params) -> resumption> -> .... For now, the semantics for -> and => are the same. This is in prevision for a future step : we will not have shallowhandler anymore and we will indicate if a resumption is shallow with -> and deep with =>.
This PR changes the syntax for handlers. Instead of
we write
We can also write
case <Op(params) -> resumption> -> ...
. For now, the semantics for->
and=>
are the same. This is in prevision for a future step : we will not haveshallowhandler
anymore and we will indicate if a resumption is shallow with->
and deep with=>
.