From 567c4b94bae2a280773cc59b07a284d0d63cdb05 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Fri, 30 Nov 2018 02:05:03 -0500 Subject: [PATCH] Update doc for qq. --- src/core/core.janet | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/core.janet b/src/core/core.janet index 97bde3a3..243e53cf 100644 --- a/src/core/core.janet +++ b/src/core/core.janet @@ -1334,7 +1334,11 @@ value, one key will be ignored." (sort (keys symbol-set))) (defmacro qq - "Quasiquote." + "Quasiquote. Similar to quote, but allows unquoting + from within a nested form. Use the (uq x) form to unquote + a form x, or use (uqs x) to do unquote splicing. In a splicing + unquote, x should be an array or tuple which will be inserted into + the form the is the parent of the (uqs x) form." [x] (defn- uqs? [x] (and (tuple? x) (= x@0 'uqs)))