and, or now wrap single term with #%expression
That disallows things like (and (define x 1)), previously accepted.
This commit is contained in:
parent
ae645a18c1
commit
4a29ce914f
|
@ -400,7 +400,11 @@
|
|||
(if (if (stx-pair? e)
|
||||
(stx-null? (stx-cdr e))
|
||||
#t)
|
||||
(stx-car e)
|
||||
(datum->syntax
|
||||
here
|
||||
(list (quote-syntax #%expression)
|
||||
(stx-car e))
|
||||
x)
|
||||
(datum->syntax
|
||||
here
|
||||
(list (quote-syntax if)
|
||||
|
@ -422,7 +426,11 @@
|
|||
(if (if (stx-pair? e)
|
||||
(stx-null? (stx-cdr e))
|
||||
#f)
|
||||
(stx-car e)
|
||||
(datum->syntax
|
||||
here
|
||||
(list (quote-syntax #%expression)
|
||||
(stx-car e))
|
||||
x)
|
||||
(if (stx-list? e)
|
||||
(let-values ([(tmp) 'or-part])
|
||||
(datum->syntax
|
||||
|
|
Loading…
Reference in New Issue
Block a user