Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62524 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45394 invoked from network); 26 Aug 2012 18:34:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2012 18:34:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=peter@likipe.se; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=peter@likipe.se; sender-id=unknown Received-SPF: error (pb1.pair.com: domain likipe.se from 109.74.1.223 cause and error) X-PHP-List-Original-Sender: peter@likipe.se X-Host-Fingerprint: 109.74.1.223 web1.likipe.se Linux 2.6 Received: from [109.74.1.223] ([109.74.1.223:38444] helo=web1.likipe.se) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/78-00843-D3C6A305 for ; Sun, 26 Aug 2012 14:34:39 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:33665) by web1.likipe.se with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1T5hfO-0006DY-4I for internals@lists.php.net; Sun, 26 Aug 2012 20:34:34 +0200 Received: by pbbrp8 with SMTP id rp8so6180111pbb.29 for ; Sun, 26 Aug 2012 11:34:31 -0700 (PDT) Received: by 10.68.241.65 with SMTP id wg1mr29133992pbc.25.1346006071966; Sun, 26 Aug 2012 11:34:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.31.227 with HTTP; Sun, 26 Aug 2012 11:34:11 -0700 (PDT) In-Reply-To: References: Date: Sun, 26 Aug 2012 20:34:11 +0200 Message-ID: To: Rasmus Schultz Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b339c7bc8fba604c82f7538 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - web1.likipe.se X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - likipe.se X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Aspect Oriented Programming in PHP From: peter@likipe.se (Peter Nguyen) --047d7b339c7bc8fba604c82f7538 Content-Type: text/plain; charset=ISO-8859-1 That's why I thnk the extension is superior to all other solutions, because it doesn't require code generation in userland. Also, it will be possible to backtrace to the declaration of the aspects. 2012/8/26 Rasmus Schultz > > > > On Thu, Aug 23, 2012 at 7:36 AM, Peter Nguyen wrote: > > I know very little about AOP and don't pretend to know a lot, but how > > would we benefit > > from directly adding it into core instead of taking the approach FLOW3 > did? > > > as I see it, the problem with AOP in PHP is the same as with any other > technique that requires code-generation, in some form or another, > including code-manipulation, pre-processing, transpilers, and so > forth: traceability of errors. > > languages that are popular as intermediary languages generally support a > directive that makes it possible to trace errors back to their source. > > I raised this issue on the list recently, and no one seemed to react with > any interest... > --047d7b339c7bc8fba604c82f7538--