Skip to content

Instantly share code, notes, and snippets.

@bollu
Created January 5, 2022 17:21
Show Gist options
  • Save bollu/b0b25e3d33a7c10cec72e1ed7bb071af to your computer and use it in GitHub Desktop.
Save bollu/b0b25e3d33a7c10cec72e1ed7bb071af to your computer and use it in GitHub Desktop.
;; quoted initarg
(defclass foo ()
((foo-field :initarg foo-initarg :accessor foo-accessor)))
(defparameter *foo* (make-instance 'foo 'foo-initarg 10))
;; symbold initarg
(defclass bar ()
((bar-field :initarg :bar-initarg :accessor bar-accessor)))
(defparameter *bar* (make-instance 'bar :bar-initarg 10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment