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)
|
(if (if (stx-pair? e)
|
||||||
(stx-null? (stx-cdr e))
|
(stx-null? (stx-cdr e))
|
||||||
#t)
|
#t)
|
||||||
(stx-car e)
|
(datum->syntax
|
||||||
|
here
|
||||||
|
(list (quote-syntax #%expression)
|
||||||
|
(stx-car e))
|
||||||
|
x)
|
||||||
(datum->syntax
|
(datum->syntax
|
||||||
here
|
here
|
||||||
(list (quote-syntax if)
|
(list (quote-syntax if)
|
||||||
|
@ -422,7 +426,11 @@
|
||||||
(if (if (stx-pair? e)
|
(if (if (stx-pair? e)
|
||||||
(stx-null? (stx-cdr e))
|
(stx-null? (stx-cdr e))
|
||||||
#f)
|
#f)
|
||||||
(stx-car e)
|
(datum->syntax
|
||||||
|
here
|
||||||
|
(list (quote-syntax #%expression)
|
||||||
|
(stx-car e))
|
||||||
|
x)
|
||||||
(if (stx-list? e)
|
(if (stx-list? e)
|
||||||
(let-values ([(tmp) 'or-part])
|
(let-values ([(tmp) 'or-part])
|
||||||
(datum->syntax
|
(datum->syntax
|
||||||
|
|
Loading…
Reference in New Issue
Block a user