I read Practical General Lisp, and I wonder if Common Lisp supports Duck-Typing, such as Ruby?
In Ruby, you can call a method on an object, regardless of class, if it implements a method with a name and argument list that the caller expects.
What about CLOS? Is it possible to call methods on objects without examining their class, just assuming that a common function will handle it. Perhaps duck printing is not needed because CLOS does not follow a messaging philosophy, and methods are not class bound.
source share