Skip to content

Commit ac327ec

Browse files
committed
Simplify halt continuation
1 parent 4211925 commit ac327ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

control/cps-simple.rkt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
(lambda (i r:rand)
4444
`(,r:rator ,r:rand ,(return/push k i r)))))))))
4545

46-
(define (cps E) (cps/k 0 E (lambda (_ r) `(halt ,r))))
46+
(define (cps E) (cps/k 0 E 'halt))
4747

4848

4949
(define examples
@@ -60,6 +60,8 @@
6060
(* (if (y (g b)) (h c) '5)
6161
(j d))))
6262

63+
(x y)
64+
6365
(lambda (q) (q '11))
6466
))
6567

0 commit comments

Comments
 (0)