Skip to content

Comment on Quote-unquote "macros"parent

Comments

but the quote-unquote-quasiquote syntax is just so dense that my brain is incapable of comprehending it

Here's JS string interpolation:

`OK ${10+20} == 30` // result: "OK 30 == 30" — a JS string

Here's a quasiquote-unquote:

`(OK ,(+ 10 20) == 30) ; result: (OK 30 == 30) — a list of 4 atoms

In my toy Lisp I used $ instead of comma, which I found a tad "more readable" coming from today's JS, Perl, Bash world. (And makes quasiquote... "the money quote"? =)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.