On Apr 5, 4:35 pm, jon <
superuser...@googlemail.com> wrote:
> Would it be a good idea to add a function like this to the standard
> library, to allow an "official" way to lookup individual methods (as
> opposed to only knowing the multi-method as a whole), and therefore
> facilitate more precisely targeted aspect/context-style wrapping --
> ie. for logging, tracing, monkey-patching(?), etc?
>
At some point there will be a proper function-based interface to the
multimethods, and something like (find-method multi dispatchval).
Along with that will be a relationship between a method and a var, and
any kind of runtime/context based wrapping will use the standard var
binding stuff.
But not now, and until then you should consider the implementation of
multimethods opaque and subject to change.
Rich