Aspect Programming Module

Joe Mason joe at notcharles.ca
Thu Apr 15 15:41:13 EDT 2004


In article <cb035744.0404150110.71e4ac2a at posting.google.com>, Will Stuyvesant wrote:
>> [Joe Mason]
>> > "AOP is a contrived way to get around the limitations of a statically
>> > typed language."
>> 
>> Care to explain that?  What I've seen of AOP seems like a very dynamic
>> design philosophy.
> 
> Dynamic indeed.  And that is a problem for statically types
> programming languages like Java.
> 
> To add logging capabilities to an instance object of a Python class
> you simply add a function/method that does the job.  Add it as an
> attribute to the object itself, or to the object's __class__, or to
> anything else you can get at via the object and its attributes.

But that doesn't address the calling of the new function.  You still
have to either manually insert calls everywhere, or set up a system
which notices when new functions are added and inserts calls to them as
needed.  Once you've done that - poof!  Aspect Oriented Programing!

Joe



More information about the Python-list mailing list