Skip to content

Commit 92cbcc5

Browse files
authored
Allow cont ref to be non-null in switch (#85)
1 parent 5bf661b commit 92cbcc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/stack-switching/Explainer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ This abbreviation will be formalised with an auxiliary function or other means i
815815
- `switch <typeidx> <tagidx>`
816816
- Switch to executing a given continuation directly, suspending the current execution.
817817
- The suspension and switch are performed from the perspective of a parent `(on $e switch)` handler, determined by the annotated control tag.
818-
- `switch $ct1 $e : [t1* (ref null $ct1)] -> [t2*]`
818+
- `switch $ct1 $e : [t1* (ref null? $ct1)] -> [t2*]`
819819
- iff `C.tags[$e] = tag $ft`
820820
- and `C.types[$ft] ~~ func [] -> [t*]`
821821
- and `C.types[$ct1] ~~ cont [t1* (ref null? $ct2)] -> [te1*]`

0 commit comments

Comments
 (0)