Welcome! Please see the About page for a little more info on how this works.

+2 votes
in Clojure by

syntax-quote is currently a somewhat gnarly bit of java code in LispReader.java, would be great to replace it with a (hopefully less gnarly) clojure macro.

LispReader.java would be required to do something similar to 'x => (quote x). `x => (syntax-quote x) , ~x => (unquote x), ~@x => (unquote-splicing x)

Has there ever been any discussion of this in the mailing list or in slack? I’ve run into a couple situations writing complex macros or macro-generating macros where having a syntax-quote macro form is helpful for manipulation the raw forms (and not the (seq (concat (list …))) forms).

1 Answer

+1 vote
Reference: https://clojure.atlassian.net/browse/CLJ-880 (reported by hiredman)