Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is AOP Metaprogramming?

AOP metaprogramming
0
Posted

Is AOP Metaprogramming?

0

First, let’s consider method declarations. Nearly 20 years ago, some programmers would look at a method declaration and read it as saying “Add an entry to the method table, with this name and this code body. This was a metaprogramming semantics for object-oriented programming. The method declaration was explicitly manipulating the method table. This was a natural way for early adopters to look at the technology, because they were concerned not only with what OO provided, but with the way it was implemented. But today, we read method declarations as saying “This is what happens when I call this method on this class of object. This is a direct semantics for objects. (To their credit, OO pioneers like Dahl, Nygaard and Kay almost always used a direct semantics when talking about OO.) Today, early adopters often discuss AOP using a metaprogramming semantics. For example, they may describe advice as meaning “Insert this code in all these places. The origin of AOP in reflection, combined wit

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.