3 ms·
Lispers have moved this to object systems sometime in the mid 70s of the last century (starting with Flavors), here CLOS: (defmethod turn-cat-into-dog ((a-
by lispm 16y ago
Lispers have moved this to object systems sometime in the mid 70s of the last century (starting with Flavors), here CLOS:
(defmethod turn-cat-into-dog ((a-cat cat)) ...)
(defmethod turn-cat-into-dof ((a-cat null)) ...)
or declarations in the mid 80s of the last century:
(defun turn-cat-into-dog (thing)
(declare (type (or cat null) thing))
...)