tangled
alpha
login
or
join now
eldridge.cam
/
trilogy
1
fork
atom
Actually just three programming languages in a trenchcoat
1
fork
atom
overview
issues
pulls
pipelines
there are still bugs in this same area
eldridge.cam
4 months ago
f59a911c
3b3f1ae5
+19
2 changed files
expand all
collapse all
unified
split
testsuite
effects-nested-cancel
main.tri
spec.toml
+18
testsuite/effects-nested-cancel/main.tri
···
1
1
+
import "trilogy:debug" use dbg
2
2
+
3
3
+
proc do_inner!() {
4
4
+
assert 'hello == yield 'get_hello
5
5
+
return true
6
6
+
}
7
7
+
8
8
+
proc do_things!() {
9
9
+
let value = with do_inner!() else yield
10
10
+
dbg!('value: value)
11
11
+
}
12
12
+
13
13
+
proc main!() {
14
14
+
assert with do_things!()
15
15
+
when 'get_hello resume 'hello
16
16
+
else yield
17
17
+
dbg!("Made it to end")
18
18
+
}
+1
testsuite/effects-nested-cancel/spec.toml
···
1
1
+
output = "value:true\nMade it to end\n"