Use Constructors
(defun make-circle (x y &key (radius 10))
(make-instance 'circle
:x x :y y :radius radius))
It’s a good practice to write constructor fns
You get better arg handling
Hide data structure decisions in case you change your mind
Previous slide
Next slide
Back to first slide
View graphic version