Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17795 invoked from network); 13 Aug 2012 23:50:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2012 23:50:18 -0000 Authentication-Results: pb1.pair.com header.from=nich.curtis@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nich.curtis@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: nich.curtis@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:50217] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/5E-00812-AB299205 for ; Mon, 13 Aug 2012 19:50:18 -0400 Received: by wgx1 with SMTP id 1so3036549wgx.11 for ; Mon, 13 Aug 2012 16:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o7BT7JslA5AxHJ5Q0GV1z6PWnxTGNGcz2KKioR9oDAw=; b=JKjy/85/VpyIrNfea8pctNTJwYU6OJngpXO+zf0cPbs6rsY2CDpAZvn4igxor2nNVE suYk+QWZ1DfaUmMsLWjRhwte/d+DAwqzAU3+J6kKbTjq1FWDwUeQRkGbVQe8x7usvOSW w0bJ5CBR5vHhBrlDkLizi5Fs7dnnDOwz/nc9G05NM/rKiUmiGm5JXojSyRXwaxFXBOZg Wk6v8KJWL+WVB38xQG23dkcsGtYpuGntHBLG1Kt+WCyViCyj9JwdSZVm0rDy4Ou9NMkv QzCiSYhbqZ/db+zSg4bpdYcnucIWiTvFWVzn0oa/2Qp45WQjo9MiwvRVj0PiyKMbbD3W mSug== MIME-Version: 1.0 Received: by 10.180.86.133 with SMTP id p5mr22534198wiz.17.1344901815109; Mon, 13 Aug 2012 16:50:15 -0700 (PDT) Received: by 10.194.20.67 with HTTP; Mon, 13 Aug 2012 16:50:15 -0700 (PDT) In-Reply-To: <50298AC9.4070302@naderman.de> References: <50298AC9.4070302@naderman.de> Date: Mon, 13 Aug 2012 16:50:15 -0700 Message-ID: To: Nils Adermann Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0442820ef2882304c72e5a11 Subject: Re: [PHP-DEV] Decorators Revisited From: nich.curtis@gmail.com (Nicholas Curtis) --f46d0442820ef2882304c72e5a11 Content-Type: text/plain; charset=ISO-8859-1 I agree great idea. Would really help to simplify benchmarking code also. On Mon, Aug 13, 2012 at 4:16 PM, Nils Adermann wrote: > On 08/12/2012 08:17 PM, Anthony Ferrara wrote: > > Thoughts? > Yes, please. I think this would be a great simplification for all kinds > of extensibility / plugin mechanisms implemented in various PHP projects. > > Typically these either end up with the boilerplate you described or try > to come up with some kind of hack (e.g. dynamic code generation) to > circumvent the problem of having to explicitly define parent classes if > one wants to dynamically decorate objects multiple times while maintaing > interfaces. > > Cheers, > Nils > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d0442820ef2882304c72e5a11--