<div dir="ltr"><div><div><div><div>If you have syntax that prints as #'(1 2), the result of syntax-e might be several things:<br><br></div>(list #'1 #'2)<br></div>(cons #'1 (cons #'2 #'()))<br></div>
(cons #'1 #'(2))<br><br></div>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 syntax->list function, however, guarantees you won't hit a syntax object somewhere along the way.<br>
</div><div class="gmail_extra"><br clear="all"><div>Carl Eastlund</div>
<br><br><div class="gmail_quote">On Mon, Sep 9, 2013 at 3:53 PM, Roman Klochkov <span dir="ltr"><<a href="mailto:kalimehtar@mail.ru" target="_blank">kalimehtar@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In help about syntax->list: In other words, syntax pairs in ( syntax-e stx ) are flattened.<br>
<br>
Tests:<br>
> (syntax->list #'((1 2)))<br>
'(#<syntax:22:19 (1 2)>)<br>
> (syntax-e #'((1 2)))<br>
'(#<syntax:24:15 (1 2)>)<br>
<br>
Result is the same. No flattening. Or I missed something?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Roman Klochkov<br>
<br>
P.S. Racket 5.3.6, Linux<br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</font></span></blockquote></div><br></div>