Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 268 Bytes

constants.md

File metadata and controls

14 lines (12 loc) · 268 Bytes

Constants

(defconstant +x+ 112)
;; => +X+
(princ +x+)
;; => 112
;;
;;    112
(setf +x+ 2334) ;; => BOOM!
  • you define constants with defconstant and a + sign around the name
  • you can't reassign the constanst with setf, it throws an error