git @ Cat's Eye Technologies Robin / a8180a0
Add failing test for visibility of bindings in `choose`. Chris Pressey 4 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3636 | (choose (#f 66) (else))
3737 ? abort
3838
39 Bindings can be seen inside each of the branches, and inside the `else`.
40
41 | (bind n (literal hi) (choose (#t n) (else (literal lo))))
42 = hi
43
44 | (bind n (literal hi) (choose (#f (literal lo)) (else n)))
45 = hi
46
3947 `choose` is basically equivalent to Scheme's `cond`.
4048
4149 '<<SPEC'