Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103359 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31494 invoked from network); 22 Oct 2018 09:03:10 -0000 Received: from unknown (HELO scarlet.netpirates.net) (188.94.27.5) by pb1.pair.com with SMTP; 22 Oct 2018 09:03:10 -0000 Received: from p579cd196.dip0.t-ipconnect.de ([87.156.209.150] helo=[192.168.178.42]) by scarlet.netpirates.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gESb1-0000K7-6f for internals@lists.php.net; Mon, 22 Oct 2018 07:17:43 +0200 To: internals@lists.php.net References: <0047f3c7-3e9e-ef6f-2d7a-e58c316ea751@gmail.com> Message-ID: <1f181cab-c0e1-8a10-26f8-f536a2373673@php.net> Date: Mon, 22 Oct 2018 07:17:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Composition over inheritance: native support for "delegating" methods? From: sebastian@php.net (Sebastian Bergmann) Am 21.10.2018 um 23:42 schrieb Marco Pivetta: > 1. the language already has all the tooling required to implement > decorators correctly > 2. the addition of a `delegate` functionality would cause more confusion > for something that is already really trivial to implement/test/read ACK