Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13913 invoked from network); 17 Apr 2016 10:29:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2016 10:29:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 212.232.25.163 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.25.163 mx207.easyname.com Received: from [212.232.25.163] ([212.232.25.163:58826] helo=mx207.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/39-32052-E7563175 for ; Sun, 17 Apr 2016 06:29:19 -0400 Received: from cable-81-173-133-226.netcologne.de ([81.173.133.226] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1arjx3-0001qe-PO; Sun, 17 Apr 2016 10:29:13 +0000 Reply-To: internals@lists.php.net References: To: Lin Yo-An , Bastian Schneider Cc: "internals@lists.php.net" Message-ID: <57136573.7070802@fleshgrinder.com> Date: Sun, 17 Apr 2016 12:29:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="m8c1kWkHfnPD94HB12tFib1mLc5DhwSKG" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: php@fleshgrinder.com (Fleshgrinder) --m8c1kWkHfnPD94HB12tFib1mLc5DhwSKG Content-Type: multipart/mixed; boundary="hbuV4mecR5Opxmt0S6w9PrN0GDA72rdUq" From: Fleshgrinder Reply-To: internals@lists.php.net To: Lin Yo-An , Bastian Schneider Cc: "internals@lists.php.net" Message-ID: <57136573.7070802@fleshgrinder.com> Subject: Re: [PHP-DEV] Re: Improving PHP's type system References: In-Reply-To: --hbuV4mecR5Opxmt0S6w9PrN0GDA72rdUq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 4/17/2016 12:22 PM, Lin Yo-An wrote: > On Sun, Apr 17, 2016 at 6:06 AM, Bastian Schneider < > bastian.schneider@commerce-plus.com> wrote: >=20 >> Just a quick thought. >> >> >> union Iterable { >> use array; >> use ArrayAccess; >> use Traversable; >> } >> >=20 > I think this example creates another meaning on the "use" syntax, which= > make "use" context depended. >=20 > The "use" statement is already used to "create an class name alias in t= he > current namespace." and this makes "use" confusing. >=20 Especially since its not needed at all. HHVM already solved most of these issues extremely nicely: - https://docs.hhvm.com/hack/types/type-system - https://docs.hhvm.com/hack/type-aliases/introduction - https://docs.hhvm.com/hack/shapes/introduction We want the same but do not want to copy?!? --=20 Richard "Fleshgrinder" Fussenegger --hbuV4mecR5Opxmt0S6w9PrN0GDA72rdUq-- --m8c1kWkHfnPD94HB12tFib1mLc5DhwSKG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXE2V4AAoJEOKkKcqFPVVrHHkP/0G5sXaRGJXpfmTUHbZvEGlD SR1zZ1JLq+1okpe6Nvq32ts08dMDrN9y5skYAwx/RTkSYj1uNiz7MMTxnEDW13Yq 1lxn8/PlBikOMJzAZIFcaRZUujaRGQEalKUZuZr2UZBJx+l7JRytJQP9WAMZcPO5 axprNdF9YBCsb8zW+AlbO7zOZpR5NX1g94irxlJfNpmkeTZidJrfjKxFXV+vPowh sGpzSgvxw47fP7MaoZAYkUqhlnsAVqyYVLX+vNkbMhaUUgYE965thzZZX5RybAoJ YiSiLKP6TnrWlXPwpQ+nyzGWmTKLyPoRtwagHhk0NuJGxqymeGYA0PZScN5JoERY gA02G6l6HAsvrrv4LY3VMf6DihtL2OWjjBmGPbQR91UFwYVFL91J3ajOsTTvq+nF SmKwzVoGuzeP2s0TDt10wD7iQehjHX+JTuD1AYVt2EbzQ7ZFCL7MeGciJzazrddy vKX/dVJW85o3nwfPZdCwRHfU5YydUtEblERhb1Q7WnU8s/lZBsTfvBCAZvkVPIrh c4TvBQ30qSdxuJ1FfRsP+QMuY7r1kj9N5zQEkf1s7IyYsnTjFZNkrR76pg//rfc9 v6bplMM0twlM+OqAMA3uLgSvcGWkgCW1QyJGFjjkoSoqYIxPFSx0YjtIs28XUUwu uWviUcjXRhIuC5K/zhZH =Mxkh -----END PGP SIGNATURE----- --m8c1kWkHfnPD94HB12tFib1mLc5DhwSKG--