Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62130 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31724 invoked from network); 13 Aug 2012 19:10:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2012 19:10:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:62779] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/CC-00812-41159205 for ; Mon, 13 Aug 2012 15:10:14 -0400 Received: by weyr1 with SMTP id r1so3135285wey.29 for ; Mon, 13 Aug 2012 12:10:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=27vg4jxEZLooVgvXCYiYgym78PPHK8PZ0SOm2xgunxQ=; b=E0ZtuF5uqRfluKjp6GrtlsnmuJDLwAjM9k0gYbI3cXybniHFmjnJThyD0spgMO/q/B pNbnHUBdAVCtJpFl5iiZQrvtTI+P7TKIkCEFKDYOZpJi+gC5xd2wltjjr1JKkhqXpRST zG6bWjyeqPoQq7QuEfyGCJTSn/4EDXOjof7ex/PY7Nhfc4VF2IoyWkbmo1V0pDTjdHev lTA4PhopWlqsMLQODtRkdog2Jrve2r1kU2z9eKl9MiygBmAxTpqxffcvsRhdtRy3Iixd CykeiD55T+H06wF9dOLdbaXxH7nEGZ/U1iXuWTyUUNFu+HztlsIP6kvCWMMuCN5taLlX rjmQ== Received: by 10.216.233.25 with SMTP id o25mr7405390weq.130.1344885010341; Mon, 13 Aug 2012 12:10:10 -0700 (PDT) Received: from [192.168.1.36] (84.Red-88-13-88.dynamicIP.rima-tde.net. [88.13.88.84]) by mx.google.com with ESMTPS id q4sm17968946wix.9.2012.08.13.12.10.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 12:10:09 -0700 (PDT) Message-ID: <5029510B.2070504@seld.be> Date: Mon, 13 Aug 2012 21:10:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnt3pQc6m8ObzJK2u9ngTSVilYQC7bOm9nBc0oxMVTvQBdtqrRWxY86mqh7Dw4TP9itNK+d Subject: Re: [PHP-DEV] Decorators Revisited From: j.boggiano@seld.be (Jordi Boggiano) Heya, > What do you think? Is this a route that I should continue down? Or is there > something fundamental that I'm missing here? I know that Reflection, > get_interfaces(), etc would need to be updated to account for this. I can't speak for the feasibility, but from a usage point of view I do like that it opens up some sort of duck-typing by allowing decorators to be drop-in replacements even if there is no interface to implement. Cheers -- Jordi Boggiano @seldaek - http://nelm.io/jordi