fosskers's Blog

fosskers's Avatar Image
Haskell -> Rust -> Lisps
← All posts

#commonlisp Equality

(defstruct foo
  a)

(defparameter *a* (make-foo :a 1))
(defparameter *b* (make-foo :a 1))

(eq *a* *b*) ;; NIL
(eql *a* *b*) ;; NIL
(equal *a* *b*) ;; NIL
(equalp *a* *b*) ;; T
To like or reply, open original post on Emacs.ch