Supporting Type-Specific Behavior
In ordinary functions, a single definition must dispatch to the appropriate code
(defun area (shape)
(ecase (type-of shape)
(circle . . .)
(rectangle . . .)
(triangle . . .)))
Previous slide
Next slide
Back to first slide
View graphic version