|
|
|
|
|
by arethuza
4879 days ago
|
|
Well, with CLOS you really define your verb behaviour on tuples of nouns (methods) and the verbs (generic functions) are separate and you can, if you want, get as creative as you want as to how your methods get invoked by your generic functions. [Mind you, it's been a while since I developed in CLOS, so apologies in advance if this is incorrect]. |
|
You can do this in any OO language as well: with multi-dispatch patterns. What makes CLOS so powerful is that you can do multi-dispatch without resorting to things like the visitor patters. Simply write what you mean with no boilerplate.