From 0126a26c555ac473477ef92e7a76aef44ddf1c9c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 16 Oct 2019 15:07:46 -0700 Subject: doc: #H() can't be written #H nil. * txr.1: Document that #H() requires the parentheses. --- txr.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/txr.1 b/txr.1 index 8309ee13..3e16f2bf 100644 --- a/txr.1 +++ b/txr.1 @@ -11553,7 +11553,7 @@ expression. The notation .code #H -followed by a nested list syntax denotes a hash table literal. +followed by list syntax denotes a hash table literal. The first item in the syntax is a list of keywords. These are the same keywords as are used when calling the function hash to construct a hash table. Allowed keywords are: @@ -11588,6 +11588,13 @@ hash table based on the .code eql function, with no weak semantics or user data. +The entire syntax following +.code #H +may be an empty list; however, that empty list may not +be specified as +.codn nil ; +the empty parentheses notation is required. + The hash table key-value contents are specified as zero or more two-element lists, whose first element specifies the .meta key -- cgit v1.2.3