EQ and the special case of symbols
Defined in the CommonLisp language: two symbols with the same print name are stored in the same area of memory
So, EQ is the appropriate equality check for symbols.
(setf A ’X)
(setf B ’X)
(eq A B) => T
Previous slide
Next slide
Back to first slide
View graphic version