On Tuesday, June 30, 2015 at 8:05:32 AM UTC-4, Karan Toor wrote:
>
> I was having some trouble understanding the difference syntax quoting and 
> regular quoting. I thought syntax quoting was like regular quoting except 
> for the unquoting, splicing, and resolving symbols in the namespace. 
>
> When I apply either the regular quote or the syntax quote twice I get 
> exactly what I expected. But when I apply the the syntax quote more than 2 
> times I get some unexpected results.
>
> https://gist.github.com/currentoor/d7f9a5fb02bec14d3886
>

My advice on nesting syntax quoting: Don't. Whether it's actually 
malfunctioning or just confusing you, I'd recommend separating each layer 
of syntax quoting into a layer of helper functions. For instance, say you 
want to make a macro that emits macros. Write the emitted macros first, as 
a parametrized helper function that emits a defmacro form, then write a 
macro that will call this with parameters derived from its arguments and 
emit the results.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to