Re: Aspect Oriented Programming in PHP
| From: | Sebastian Krebs | Date: | Thu, 23 Aug 2012 20:54:42 +0000 |
| Subject: | Re: Aspect Oriented Programming in PHP | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62437@lists.php.net to get a copy of this message | ||
Hi,
From my users point of view: I would like to see it. Maybe not in this implementation/syntax, especially because it hasn't a special syntax (but imo it should to make the impact more obvious/prominent). With the joint points as string and the common function call I can imagine it can get hard to find out, where a specific advise where attached, or which were attached at all, or just how many. For example I rename a method/class and I will not recognize, that a security advise gets lost, I may realize it as soon as I find my data on pastebin ;) But I have no idea how it could look like....
Regards,
Sebastian
Am 23.08.2012 16:36, schrieb Peter Nguyen:
Hi, AOP (http://en.wikipedia.org/wiki/Aspect-oriented_programming) when used correctly, can make your application really modular. I've seen several implementations but they all require compiling of code beforehand. There is however a PECL extension now (https://github.com/AOP-PHP/AOP) that enable AOP in PHP directly. I was wondering if there are any interests/possibility to include AOP into the PHP core? Best regards, Peter