Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65652 invoked from network); 17 Feb 2016 15:48:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2016 15:48:53 -0000 Authentication-Results: pb1.pair.com header.from=theseer@netpirates.net; sender-id=pass; domainkeys=bad (unsupported query type) Authentication-Results: pb1.pair.com smtp.mail=theseer@netpirates.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain netpirates.net designates 188.94.27.5 as permitted sender) DomainKey-Status: bad (unsupported query type) X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: theseer@netpirates.net X-Host-Fingerprint: 188.94.27.5 scarlet.netpirates.net Received: from [188.94.27.5] ([188.94.27.5:42860] helo=scarlet.netpirates.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/EA-17120-36694C65 for ; Wed, 17 Feb 2016 10:48:52 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=netpirates.net; h=message-id :subject:from:to:date:in-reply-to:references:content-type :mime-version; q=dns/txt; s=dkim; b=ie58KEGYcQZzS1DdWE6pYyd5BWSI 0WY3bAyabEzPjUWqZrzKTB/KnO3YIA0QQN4s9a1P3nH1WSV2+nx+0zseB7RwV+ip kg6qrh7qpQo3qgxWLA6vmWryFlq8EmtQqJTlykV8UeWR/wOx3Um05tNys9ZRRdg+ aoct2+SPE82HPp2mRTjEOdnzv2xSZEq3KOlJikyVqeMZpoLt3mhFAjB49q3AZtXN okxelipa8JdBRca2fDm4MzL05qCq0jWSizl9nSpXJTq2hBwtnta58LsAfusxecQL Exh/lN/XsQD17fumirMoqISgOYrjYrDHxDGaCWSTz0AH16ptaO4poVPEgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netpirates.net; h=message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version; q=dns/txt; s=dkim; bh=OtEe9DZ9c+0yhw PunNM2CWiJZiDdHt/SGPlPQY0SV5Y=; b=GnU/L+HYekBiF1Rq6aLQO2FLBjN4WS ybLdWl+YBcZoq09TzC9KKV4Bf9sLrUt+LdXTsDw3XE82Wkn/7gfvhjk3/s3RfO72 woUf4F0fSYgEf2NbOnubTbzYUq65Jg8iOByeUanorgThdzQORbICtIboy+HuLoPn ax/GsXHwT3+v5l8Thhv/wv916SWPe1MjK8Ll2v6aMXRZlXM3oRCd5HgYGmDiTrH5 wyuFLybpWU5tgvcni8MOYKJGY1IL8XXjjkQZ2+AzzQeA51L0bu1iJkD0qYiK/6Lb uNunhDC6X9/Hp2MdPUrJdwxIy9ELOwUq5EjXEJgKEN0lH1HPLwHJbsXw== Received: (qmail 14403 invoked by uid 89); 17 Feb 2016 15:48:52 -0000 Received: by simscan 1.4.0 ppid: 14395, pid: 14398, t: 0.0526s scanners: attach: 1.4.0 clamav: 0.98.4/m:55/d:20700 Received: from unknown (HELO nyda.fritz.box) (theseer@netpirates.net@78.55.33.216) by scarlet.netpirates.net with ESMTPA; 17 Feb 2016 15:48:52 -0000 Message-ID: <1455724115.5642.44.camel@netpirates.net> To: internals@lists.php.net Date: Wed, 17 Feb 2016 16:48:35 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-kc/qXrud17wIc3LCENer" X-Mailer: Evolution 3.18.4 (3.18.4-1.fc23) Mime-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Traits with interfaces From: theseer@netpirates.net (Arne Blankerts) --=-kc/qXrud17wIc3LCENer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kevin, =C2=A0 Hi all, On Mi, 2016-02-17 at 09:25 -0500, Kevin Gessner wrote: >=C2=A0 > I've noticed s pattern in Etsy's code and elsewhere, where a trait > provides a common implementation of an interface.=C2=A0=C2=A0Classes that= use > the trait are required to also explicitly declare the interface to > benefit.=C2=A0=C2=A0I propose that traits be permitted to declare and imp= lement > interfaces.=C2=A0=C2=A0Classes that use such a trait would then implement= the > interface, as though it were declared on the class, without declaring > the interface explicitly. While I do see the benefit in that behavior and I admit I sometimes in the past wished for something like that as well, it's quite implicit as one cannot see that class "implements" the interface. Which makes it already less appealing to me. Additionally, I wonder what the expected behavior would be when it comes to aliasing, visibility changing and conflict resolving? Kind regards, Arne Blankerts --=20 Those who do not understand Unix=20 are condemned to reinvent it, poorly (Henry Spencer,1987) --=-kc/qXrud17wIc3LCENer Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABEKAAYFAlbEllMACgkQaf6aYgLoDvnbgACcCh0K5cHGVBvSi2k7z0sALrlF GdEAoMdV+bEy4htNOhfAwO6myAbsyQHE =L8I7 -----END PGP SIGNATURE----- --=-kc/qXrud17wIc3LCENer--