From 871ab1efd17f86049ec8a20c5597e6f310a06c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Marczyk?= Date: Thu, 19 Jan 2017 02:09:47 +0100 Subject: [PATCH] Add <, >, = to admissible symbol literal characters This makes the names of several built-ins (e.g. clojure.core/{<,>,=}) legal symbols. --- content/reference/reader.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/reference/reader.adoc b/content/reference/reader.adoc index 5e00c1ff..87063c89 100644 --- a/content/reference/reader.adoc +++ b/content/reference/reader.adoc @@ -23,7 +23,7 @@ Since we have to start somewhere, this reference starts where evaluation starts, === Symbols -* Symbols begin with a non-numeric character and can contain alphanumeric characters and *, +, !, -, _, ', and ? (other characters may be allowed eventually). +* Symbols begin with a non-numeric character and can contain alphanumeric characters and *, +, !, -, _, ', ?, <, > and = (other characters may be allowed eventually). * '/' has special meaning, it can be used once in the middle of a symbol to separate the namespace from the name, e.g. `my-namespace/foo`. '/' by itself names the division function. * '.' has special meaning - it can be used one or more times in the middle of a symbol to designate a fully-qualified class name, e.g. `java.util.BitSet`, or in namespace names. Symbols beginning or ending with '.' are reserved by Clojure. Symbols containing / or . are said to be 'qualified'. * Symbols beginning or ending with ':' are reserved by Clojure. A symbol can contain one or more non-repeating ':'s.