Advice (programming): Difference between revisions

Content deleted Content added
No edit summary
m punctuation - You can help!
Line 11:
''The principal advantage of advising is that the user need not be concerned about the details of the actual changes in his program, nor the internal representation of advice. He can treat the procedure to be advised _as a unit_, a single block, and make changes to it without concern for the particulars of this block. This may be contrasted with editing in which the programmer must be cognizant of the internal structure of the procedure.''
 
"Advising" found its way into BBN Lisp and later into Xerox PARC's Interlisp.
The PhD thesis can be downloaded from
http://www.ai.mit.edu/research/publications/browse/0200browse.shtml
(AITR-221)
 
"Advising" found its way into BBN Lisp and later into Xerox PARC's Interlisp. See, for example, Chapter 19 of the Interlisp Reference Manual at http://www.classiccmp.org/bitsavers/pdf/xerox/interlisp/1974_InterlispRefMan.pdf
 
It also found its way to Flavors, the first object-oriented extension to Lisp developed at MIT. They were subsumed under the notion of method combination. See, for example, AIM-602 at http://www.ai.mit.edu/research/publications/browse/0600browse.shtml <sup>[[#Notes|1]]</sup>
Line 21 ⟶ 17:
Since method combination and macros are closely related, it's also interesting to note that the first macro system was described in 1963, three years before Warren Teitelman's PhD thesis. See AIM-57 at http://www.ai.mit.edu/research/publications/browse/0000browse.shtml <sup>[[#Notes|2]]</sup>
 
==== Notes ====
[[Gregor Kiczales]] comments the above as follows:
# ''Advice appeared separately from [[Flavors (Lisp)|Flavors]] in [[MacLisp]] and the [[Lisp Machine]]. You could advise any function, just like in Interlisp at the time. The before/after ontology appeared separately in Flavors methods.''
# ''Method combination and macros were only marginally related until much later, in New Flavors and [[CLOS]], when a macro-like mechanism was provided to allow people to define their own rules for combining methods. Prior to that the rules governing combination of before/after methods and so-called whoppers methods (around) was fixed, and the compiler just generated the code for that. There were things called wrappers, which had macro-like behavior, but I forget when they came around. Traipsing through the various versions of MacLisp and Lispm manual to get this part of the history exactly right could interesting. Or it could be that Howard Cannon or David Moon or someone could actually remember it all exactly.''
 
 
=== External links ===
* [http://www.ai.mit.edu/research/publications/browse/0200browse.shtml Teitelman's PhD thesis] (AITR-221)
* [http://www.classiccmp.org/bitsavers/pdf/xerox/interlisp/1974_InterlispRefMan.pdf InterLisp reference manual]
 
[[Category:Programming paradigms|Aspect-oriented programming, Advice]]