Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63159 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89168 invoked from network); 19 Sep 2012 17:34:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2012 17:34:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:42720] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/2E-15057-9120A505 for ; Wed, 19 Sep 2012 13:34:17 -0400 Received: by iamm10 with SMTP id m10so1111715iam.29 for ; Wed, 19 Sep 2012 10:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=7ghj6Mq9DZ46votCJow4HBClIvsA5L2lKUFriB7WaCk=; b=HsUwQhMkLx3h+F/o7OG7Cv3UTTB0aRY3eKFonm6F3hOjYtkS4+rAraA7zrw/u+EnhE BbFgj+orz8+u33ERnAyJCI+bNU4yytVnTUQ2l/ymhymmQ39iCTbKeBa2ZAysPY13Vk3u RfhQD3e2UZMCbW8gTN3O42iq6LWHPXmvuIVJ5mpUGkwnTnNeB8TH/Mo0iqjundLQIQsL nJu8CNmeIuHpUgxMiJ99t4DeP1C4ufn+x/NeKC4P8Uu207J5Zdqptx6YK3h7SlyYvVCz J7K9P680AZillKXY6/TYR+92BJpQOZhrTN9KcwK1mnwdEC0QYC3EGhi1xv7cp3Lue4+5 6aIw== MIME-Version: 1.0 Received: by 10.42.156.1 with SMTP id x1mr2980905icw.51.1348076055229; Wed, 19 Sep 2012 10:34:15 -0700 (PDT) Sender: julienpauli@gmail.com Received: by 10.64.63.201 with HTTP; Wed, 19 Sep 2012 10:34:15 -0700 (PDT) Received: by 10.64.63.201 with HTTP; Wed, 19 Sep 2012 10:34:15 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Sep 2012 19:34:15 +0200 X-Google-Sender-Auth: mFOGooZR-4kFNcohR66DBFsL_Bo Message-ID: To: Kris Craig , PHP Internals Cc: Rasmus Schultz , Amaury Bouchard Content-Type: multipart/alternative; boundary=90e6ba10b08766f5f304ca116ae0 Subject: Re: [PHP-DEV] constructor hook From: jpauli@php.net (jpauli) --90e6ba10b08766f5f304ca116ae0 Content-Type: text/plain; charset=ISO-8859-1 On Sep 19, 2012 4:31 AM, "Kris Craig" wrote: > > On Tue, Sep 18, 2012 at 8:14 AM, Amaury Bouchard wrote: > > > Sounds to me like aspect-oriented programming, applied to object > > construction. > > Take a look at: https://github.com/AOP-PHP/AOP > > > > > Yeah I wasn't aware of this, either, but I can think of several scenarios > in which it'd be useful. I know this is PECL, but is this something that > might be worth bundling? I'm still a bit new here so if that idea's heresy > please let me know. If not, that would be a nice feature to have on a > default installation I think. Thoughts? Why not, 2 solutions here : - Bundle it with PHP sources - Merge it with core (trunk) I think that it may need more code to bind AOP functionnalities to Reflection though. Anyway, an RFC will be needed ;) Julien.Pauli On Sep 19, 2012 4:31 AM, "Kris Craig" wrote: > On Tue, Sep 18, 2012 at 8:14 AM, Amaury Bouchard > wrote: > > > Sounds to me like aspect-oriented programming, applied to object > > construction. > > Take a look at: https://github.com/AOP-PHP/AOP > > > > > Yeah I wasn't aware of this, either, but I can think of several scenarios > in which it'd be useful. I know this is PECL, but is this something that > might be worth bundling? I'm still a bit new here so if that idea's heresy > please let me know. If not, that would be a nice feature to have on a > default installation I think. Thoughts? > > @Ferenc Yes congrats on cherry-picking a few recent posts that > weren't Nobel Prize material (some of which did make constructive points > when viewed in context, albeit with some creative flair). I'm not in the > market for a nanny right now; I'll let you know if that ever changes. If > you'd like to discuss your personal feelings about this further, please do > so via private email so we don't spam the list. > > --Kris > --90e6ba10b08766f5f304ca116ae0--