Skip to content

mention quasiquote? #193

@shaunlebron

Description

@shaunlebron

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions