Consistent parameter order between cont.bind and switch tags #67
Open
Description
The explainer currently proposes to change the order in which cont.bind
binds arguments. However, it needs to remain possible to use cont.bind
to supply the (regular) arguments to a continuation used with switch
, otherwise certain usage patterns that use cont.bind
to unify continuation argument types would break (see comment for some context).
If we keep the changed order of cont.bind
, we hence need to consistently change the position of the continuation parameter to a switch tag from last to first:
- and `C.types[$ct1] ~~ cont $ft1`
- and `C.types[$ft1] ~~ [(ref null? $ct2) t1*] -> [te1*]`
Metadata
Assignees
Labels
No labels