Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mention quasiquote? #193

Open
shaunlebron opened this issue Oct 1, 2022 · 0 comments
Open

mention quasiquote? #193

shaunlebron opened this issue Oct 1, 2022 · 0 comments

Comments

@shaunlebron
Copy link
Member

shaunlebron commented Oct 1, 2022

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, and Rich added the fake calls to allow it:

CleanShot 2022-10-01 at 09 43 09@2x

It looks like a canonical quasiquote was published four years later in 2012 (which I had starred and forgot about):
https://github.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

CleanShot 2022-10-01 at 09 41 05@2x

CleanShot 2022-10-01 at 09 41 24@2x


# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant