[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: format for description of generic functions in chapter 2
"To me lambda-list congruence seems equally applicable
to all generic functions and methods, and furthermore it's hard to see
generic functions could work or users could call them if there wasn't
lambda-list congruence. . . ."
There were numerous discussions of alternate rules for lambda-list
congruence than the ones that made it into the spec. Generic functions
could implicitly assume that they were defined with &rest, for example,
yet allow some methods to have &REST and others &KEY or even a set of
&OPTIONAL arguments. Allowing the number of arguments to vary by class
seems possible, too, although it might require a run-time test at method
entry to determine if the generic function handed on too many arguments
for that particular method.