Search code examples
ccomponentssoftware-designaop

Aspect Oriented C (not C++) in Production Code


This is a question further derived from a previous one: https://stackoverflow.com/questions/1834485/aspect-oriented-programming-aop-in-c-not-c-anyone-doing-it

The answers to that question point us to some research practices at queens university here: http://sailhome.cs.queensu.ca/~bram/aspicere/index.html.

Beyond that research effort, does anyone know of real world usage of Aspect Oriented C in production code? If no, where do you think the difficulty is? If yes, what's the hurdle that makes it unpopular yet?

I think the benefit of AOP is obvious. But after AOP-Java becoming popular for a decade, AOP-C is still almost non-existent, there must be some reason. What's your insight on this?


Solution

  • After some thinking I believe the answer is that C lacks the structural constructs where you can hook up your aspect cross-cuts.

    To get around of this problem, a project would have to impose strict structural conventions that is not easy to have programmers to agree on. If you do have programmers to agree on to such a convention, the chance is that the project would have chosen a better language.