Login
7 branches 0 tags
Ben (X13/Arch) Simplified things a little 0643405 9 days ago 1260 Commits
nujel / docs / stable / 1.7-quote-quasiquote.md

[ 1.6 - Variables | 1.8 - Procedures ]


Quote / Quasiquote

Quote works as you would expect, quasiquote however uses the clojure syntax for unquote/unquote-splicing. This is because I want to be able to treat , as white-space (it also looks very similar to a period, which I dislike).

'a ; You can quote symbols
; => a

'[1 2 3] ; Or lists
; => [1 2 3]

'(1 2 3) ; With parentheses or brackets
; => [1 2 3]

`[1 2 ~[+ 1 1 1]] ; To unquote you can use a tilde
; => [1 2 3]

`[1 ~@[list 2 3]] ; And ~@ for unquote-splicing
; => [1 2 3]


[ 1.6 - Variables | 1.8 - Procedures ]