Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58918 invoked from network); 19 Feb 2016 19:48:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2016 19:48:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=chasepeeler@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chasepeeler@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.45 as permitted sender) X-PHP-List-Original-Sender: chasepeeler@gmail.com X-Host-Fingerprint: 209.85.218.45 mail-oi0-f45.google.com Received: from [209.85.218.45] ([209.85.218.45:35790] helo=mail-oi0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/12-36948-27177C65 for ; Fri, 19 Feb 2016 14:48:03 -0500 Received: by mail-oi0-f45.google.com with SMTP id x21so19279780oix.2 for ; Fri, 19 Feb 2016 11:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=G0HSXum/LzsVawF6DwNCjsC4yE/gp+oesWjnJTTLY+c=; b=zoS8lX2rRDh8HvjTHE8UE5UZ0Pr6RCyjF3erOwXAsgIv91eryWmoJ77T0XFxA4Z35N Ui5bAN3+eyrPS3ghiw16RrBLPCcBB93lDQ2M3DifaZiJ7g8MrmN/R6r7dAzeG1adKatO opiT1T7hA6e60L9AJcsCq7kIv/ZAmppzM8Ye+KyXLs0uZTlULPqXfRvjpH4xtm6lRQbQ kvsCrwGM+0i8ITLQsi2T3ilKHFW6XYgfW9AXYVB0Omqz+yT/UzsSpMKw+lkCJ5tF3BXT I+zNk30AZDTSD9bN6cmm0r0mj1pUeohtojxM48Hpdqb6AcWJ1eiaDh44wPmF7JA6GJj3 asig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=G0HSXum/LzsVawF6DwNCjsC4yE/gp+oesWjnJTTLY+c=; b=bXuAEISKgQhVBW1UY5trGhpKKebTWfQfTLhB3j+GtBaFk9du5szMkokivZd+kHy6uK u3LtNZeYATamUpfPlGuYMBOf7qWgAcy1XuG0FC0OxFJLIlHSXCM0OnpUF5i8Bl2B3O+c ogflYgfsJ+t+DQblfiArWdqhLJQf3JrB3ZBRJcy2i9eg/Qfn2shJjbtEOni9WJfZTSRF fUvawA5cQF4BG9Z/GX/DbJSog22yxN1Nd0LdmQ7I1eRJ2ImrnWqi64v44BJRU7ZTP8KI mwDR/HqVGmd16YSGqIcqGRT41EDGkAksfGjziM3KckRhk3GkOc0hmLDXZVzy1OSOFFsc d7/g== X-Gm-Message-State: AG10YORjLCD2mTqYCCMyAQ7ToyrT6MGsMxBbwnrgdUt5gDJp9iX+VQzo5sB/4gXVHiRv3/cJnogKKTalp+ylaQ== X-Received: by 10.202.83.142 with SMTP id h136mr12749278oib.131.1455911278792; Fri, 19 Feb 2016 11:47:58 -0800 (PST) MIME-Version: 1.0 References: <56C7700E.3090706@fleshgrinder.com> In-Reply-To: <56C7700E.3090706@fleshgrinder.com> Date: Fri, 19 Feb 2016 19:47:49 +0000 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a113d20c498d708052c24c218 Subject: Re: [PHP-DEV] [RFC] Traits with interfaces From: chasepeeler@gmail.com (Chase Peeler) --001a113d20c498d708052c24c218 Content-Type: text/plain; charset=UTF-8 On Fri, Feb 19, 2016 at 2:42 PM Fleshgrinder wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 2/19/2016 8:34 PM, Chase Peeler wrote: > > My comments above, however, were more in relation to the HHVM > > notion of "requires implement interface" which I don't think either > > proposal does. > > > > I cannot vote but I would like to repeat that the HHVM approach solves > all desires. > > I can't vote either :-) I don't agree. The HHVM approach of allowing a trait to indicate the a utilizing class MUST implement an interface is, in my opinion, not a good thing. It allows the trait to force a utilizing class to interact with a third entity, which I don't think a trait should be able to do. The trait can say "hey, if you want to use me, you have to implement my abstract methods" but the trait shouldn't be able to force you to include his friends. Again, that part of the HHVM approach isn't being proposed, so it's really a moo point anyway. > - -- > Richard "Fleshgrinder" Fussenegger > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQIcBAEBCAAGBQJWx3ANAAoJEOKkKcqFPVVrnUoP/jEjDHkxDuGVagUvkIqaGXbL > NQqrgXvSuv5kjsLXNMsQcYL7NVdfRK18PpZ8V0rVi6bzph4azOWC/Y01NyuW+CAN > T+eccL5yiI7UPCh/Iiif4d9nGu6gCBEXgvu4ADtK5Z8lQx+P+UhXahCksTeNXPl5 > 5x3kNBEHKI4HrnKeDZpRyLg+waJxkIzn7Ulrd4OPta8zJvhOF2r0SSwugbE703nt > d9n9XKrp8xdji3uoNeLD95FLEjWi85U0ANO2iFKgawGAHnKRXeLOaTL8Jzygjmsy > YegO7OQzKR+SqCTivTSejsTKcMJQKJi3Uj1zHu4j+P8hIuGvHBA/LcfP030jj/vH > 3L4XZnv0/gogX4EwJ4K3BjzKyWKwMxtzRoQttClGbVn/3qO7y5cpUe6W9WhetMh5 > Z+VnuuyEGLE0wvjVnXOHA7ZC/mykNFUIgEv6nvoCIdLWXtST16ozP/FYK9o1hQyl > jSlC66JPIqD2kvJxAR7lEJfIv0pz8qfptt45zMitapd0cr2r63FJW7usg1T7VIpI > oUKKGIKX8PUnYAYqPfsK6zIENqZwQQ6FkmWVYKF2gSE5zcOpt4P2J23AMnGZe70/ > wpJoo37MKmnOrVk99FisHFpIOCqQ3YS8kocDC390g1LsGDv++aapfAWUo073JpuR > ySxOW97em8OevmKFtMcb > =nzH/ > -----END PGP SIGNATURE----- > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Chase chasepeeler@gmail.com --001a113d20c498d708052c24c218--