If you have syntax that prints as #'(1 2), the result of syntax-e might be
several things:
(list #'1 #'2)
(cons #'1 (cons #'2 #'()))
(cons #'1 #'(2))
There's no guarantee how far the conses go down the spine before you hit
another syntax object, it depends on how the syntax was constructed. The
In help about syntax->list: In other words, syntax pairs in ( syntax-e
stx ) are flattened.
Tests:
> (syntax->list #'((1 2)))
'(#)
> (syntax-e #'((1 2)))
'(#)
Result is the same. No flattening. Or I missed something?
--
Roman Klochkov
P.S. Racket 5.3.6, Linux
R
2 matches
Mail list logo