From 5d08be74f82ec4b6816b25da7eff777f01ce8ad4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 6 Dec 2016 05:04:24 -0800 Subject: doc: dialect note about quasiquote. * txr.1: Document that unquoting and splicing forms may appear outside of unquote syntax. --- txr.1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/txr.1 b/txr.1 index 0679a1b2..710622ed 100644 --- a/txr.1 +++ b/txr.1 @@ -10401,6 +10401,19 @@ to apply the ordinary non-splicing unquote to the symbol whitespace must be used: .codn ", *abc" . +In \*(TX, the unquoting and splicing forms may freely appear outside of +a quasiquote template. If they are evaluated as forms, however, they +throw an exception: + +.cblk + ,(+ 2 2) ;; error! + + ',(+ 2 2) --> ,(+ 2 2) +.cble + +In other Lisp dialects, a comma not enclosed by backquote syntax is +treated as a syntax error by the reader. + .NP* Quasiquoting non-List Objects Quasiquoting is supported over hash table and vector literals (see Vectors and Hashes below). A hash table or vector literal can be quoted, like any -- cgit v1.2.3