1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 02:04:23 +02:00

Fix invalid characters for Common Lisp symbols

The characters [ ] { and } are perfectly fine to use in variable names.

(defparameter b{l}a[b[l]]a "test") ; => B{L}A[B[L]]A
b{l}a[b[l]]a                       ; => "test"
This commit is contained in:
Joram Schrijver
2014-04-03 10:39:32 +02:00
parent 6fcf30a78c
commit b5e4d6dd01

View File

@@ -140,7 +140,7 @@ nil ; for false - and the empty list
;; 2. Variables ;; 2. Variables
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; You can create a global (dynamically scoped) using defparameter ;; You can create a global (dynamically scoped) using defparameter
;; a variable name can use any character except: ()[]{}",'`;#|\ ;; a variable name can use any character except: ()",'`;#|\
;; Dynamically scoped variables should have earmuffs in their name! ;; Dynamically scoped variables should have earmuffs in their name!