-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Description
The pretty printer emits session types that cannot be typesetted by the programmer, e.g.
links> fun mkChan() { fork(fun(ch) { var ch = send(42, ch); close(ch) }) };
mkChan = fun : () ~> ~!(Int).End
links> sig mkChan : () ~> ~!(Int).End fun mkChan() { fork(fun(ch) { var ch = send(42, ch); close(ch) }) };
***: Parse error: <stdin>:1
sig mkChan : () ~> ~!(Int).End fun mkChan() { fork(fun(ch) { var ch = send(42, ch); close(ch) }) };
^
links> sig mkChan : () ~> ~(!(Int).End) fun mkChan() { fork(fun(ch) { var ch = send(42, ch); close(ch) }) };
mkChan = fun : () ~> ~(!(Int).End)
Reactions are currently unavailable