Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62441 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44201 invoked from network); 24 Aug 2012 05:41:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2012 05:41:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@evancoury.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=me@evancoury.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain evancoury.com designates 184.105.241.53 as permitted sender) X-PHP-List-Original-Sender: me@evancoury.com X-Host-Fingerprint: 184.105.241.53 mail.evan.pro Linux 2.6 Received: from [184.105.241.53] ([184.105.241.53:45222] helo=mail.evan.pro) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/02-30159-80417305 for ; Fri, 24 Aug 2012 01:41:30 -0400 MIME-Version: 1.0 X-DKIM: Sendmail DKIM Filter v2.8.3 mail.evan.pro 2AC1B4B30188 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=evancoury.com; s=default; t=1345786885; bh=s1Kp3mSdNPAa8lbIsjCJxxpKGD8=; h=In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc: Content-Type; b=USkvqZ4oavEI1VQp1Wm4zYfG/lPw6jbmfGui8VzTP1lo9wd62rATCHrZFfOJ7WYhD iCn2WRQMFShuGYLCW0Pn/+q5seWyQLqj5dX9EyTObtqbmfdtUMbNrpYBDVQYfA/v6u SiVF8ElCdCdfiaPvuuB5PnQ2rV1YutIE9ptyV+o8= In-Reply-To: References: Date: Thu, 23 Aug 2012 22:41:23 -0700 Message-ID: To: Peter Nguyen Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Aspect Oriented Programming in PHP From: me@evancoury.com (Evan Coury) On Thu, Aug 23, 2012 at 7:36 AM, Peter Nguyen wrote: > > 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. Recently there's been a trend towards modular design in the various frameworks and PHP in general. I believe supporting AOP in some capacity in core would help to foster this mentality and would obviously improve the extensibility of existing modules/bundles/libraries/etc. The result would be more opportunities for code reuse and less inferior, duplicate implementations of the same old wheel, as third party extensions for existing code could be made much more powerful. -- Evan Coury