diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-08-08 07:10:03 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-08-08 07:10:03 -0700 |
commit | ca9ecd3ded67f06c9cebe5b3fd4d6fb940342f44 (patch) | |
tree | d26f89be91f0fc5c22ae09739ec6b6671e502119 | |
parent | 44453f30dd81ffa1e995662fd75a675b5b208406 (diff) | |
download | txr-ca9ecd3ded67f06c9cebe5b3fd4d6fb940342f44.tar.gz txr-ca9ecd3ded67f06c9cebe5b3fd4d6fb940342f44.tar.bz2 txr-ca9ecd3ded67f06c9cebe5b3fd4d6fb940342f44.zip |
doc: bit ore advice on unused variable diagnotics.
* txr.1: Mention that @nil can be used in pattern matching
to suppress unused variable warnings.
-rw-r--r-- | txr.1 | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -88413,7 +88413,7 @@ named by uninterned symbols. .brev .IP 5. -.BR "In pattern matching, put catch-all variable to use" : +.BR "In destructuring and pattern matching, put catch-all variable to use" : Examples: @@ -88436,6 +88436,17 @@ Examples: .brev .IP 6. +In pattern matching, use the +.code @nil +pattern: + +.verb + (match-case obj + ((@a @nil) (calculate-something a)) + (@nil (transform obj))) +.brev + +.IP 7. .B "In macro parameter lists use t symbol" : in macro-style parameter lists, any variable may be replaced by the .code t |