Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62440 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42102 invoked from network); 24 Aug 2012 05:15:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2012 05:15:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.12.24 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.12.24 host1.trois-doubles.net Linux 2.6 Received: from [95.130.12.24] ([95.130.12.24:42285] helo=host1.trois-doubles.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/B1-30159-3FD07305 for ; Fri, 24 Aug 2012 01:15:32 -0400 Received: from Hwhost2.local (56-7.78-83.cust.bluewin.ch [83.78.7.56]) by host1.trois-doubles.net (Postfix) with ESMTPA id B2873208ECE for ; Fri, 24 Aug 2012 07:15:27 +0200 (CEST) Message-ID: <50370DEF.3080602@hoa-project.net> Date: Fri, 24 Aug 2012 07:15:27 +0200 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20120822 Thunderbird/16.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Aspect Oriented Programming in PHP From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 23/08/12 16:36, Peter Nguyen wrote: > Hi, 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? +1! AOP is very useful when making some safeness or security tools, like tests automation (with contracts for making Design-by-Contract or Contract Driven Testing). It avoids to instrument the code each time, which is a drawn-out/laborious task. I would really like to see this extension in the core. I'm sure that it will be useful for so many people and so many tools (each time you need cross-logic in your application architecture actually). Best regards. -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/