I don't know what all is currently available for Racket[1], but two
search keywords to slog through are "advice" and "aspect".
Aspects and other framework-y interfaces can be good for extensibility
of a system. (But maybe try to make loosely-coupled reusable modules
that don't need it, as much as practical.) When you don't have an
interface like that, but really-really need it, advice is sometimes a
lifesaver.
Separately, your particular example suggests that Racket's generics
might do what you currently need to do.
[1] It seems a lot of researchy/experimenty independent Racket stuff is
not well-advertised.
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.