Experiment with requiring cont for (set!)

This commit is contained in:
Justin Ethier 2020-01-23 13:39:34 -05:00
parent 6228fb1f1a
commit d104a0ad46

View file

@ -1091,8 +1091,11 @@
((and (ast:lambda? (car exp))
(every
(lambda (arg)
(or (not (prim-call? arg))
(not (prim:cont? (car arg)))))
(and
(not (set!? arg))
(or (not (prim-call? arg))
(not (prim:cont? (car arg)))
)))
(cdr exp))
(every
(lambda (param)