Comment on Quote-unquote "macros"parentComments−dualogy2ybut the quote-unquote-quasiquote syntax is just so dense that my brain is incapable of comprehending itHere's JS string interpolation:`OK ${10+20} == 30` // result: "OK 30 == 30" — a JS stringHere's a quasiquote-unquote:`(OK ,(+ 10 20) == 30) ; result: (OK 30 == 30) — a list of 4 atomsIn 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"? =)
Comments
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"? =)