|
Subject: Re: AOP without the buzzwords Newsgroups: gmane.comp.lang.lightweight Date: 2004-06-08 14:08:03 GMT (3 years, 48 weeks, 6 days, 22 hours and 53 minutes ago) At 2:06 PM -0700 6/7/04, Peter Seibel wrote: >Scott McKay <swm <at> itasoftware.com> writes: > >> As far as I can tell, if you have the following, you >> can pretty much do what AOP requires: >> - CLOS- or Dylan-style generic function-based multi-methods >> - reasonably capable macros, as in Lisp, Scheme, or Dylan >> - function "advice", which exists in most Lisp implementations, >> but nothing else AFAICT > >Would you even need "advice" if all the functions (that you care >about) are generic functions and you have CLOS-style method >combinations? I.e. isn't advice just a sort of poor-man's method >combination for functions that weren't originally defined as GFs? > What "advice" additionally provides is a new sort of "method combination" (or namespace) for the aspect you are adding. Even with full CLOS-style methods, you can run out of befores, afters, arounds, wrapper, whoppers, whoopie-cushions, and what-have-yous. |
|
|