Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92382 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22862 invoked from network); 17 Apr 2016 12:35:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2016 12:35:29 -0000 Authentication-Results: pb1.pair.com header.from=tpunt@hotmail.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tpunt@hotmail.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.co.uk designates 157.55.0.218 as permitted sender) X-PHP-List-Original-Sender: tpunt@hotmail.co.uk X-Host-Fingerprint: 157.55.0.218 dub004-omc1s19.hotmail.com Received: from [157.55.0.218] ([157.55.0.218:51659] helo=DUB004-OMC1S19.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/7A-32052-E0383175 for ; Sun, 17 Apr 2016 08:35:28 -0400 Received: from DUB129-W10 ([157.55.0.239]) by DUB004-OMC1S19.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 17 Apr 2016 05:35:23 -0700 X-TMN: [23fK4f+ICGpHOSBlfo+1zcHy1KWwCP8L] X-Originating-Email: [tpunt@hotmail.co.uk] Message-ID: To: Lin Yo-An , Bastian Schneider CC: "internals@lists.php.net" Date: Sun, 17 Apr 2016 13:35:23 +0100 Importance: Normal In-Reply-To: References: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 17 Apr 2016 12:35:23.0905 (UTC) FILETIME=[9CDA8F10:01D198A5] Subject: RE: [PHP-DEV] Re: Improving PHP's type system From: tpunt@hotmail.co.uk (Thomas Punt) Hi!=0A= =0A= >> Just a quick thought.=0A= >>=0A= >>=0A= >> union Iterable {=0A= >> use array=3B=0A= >> use ArrayAccess=3B=0A= >> use Traversable=3B=0A= >> }=0A= >>=0A= >=0A= > I think this example creates another meaning on the "use" syntax=2C which= =0A= > make "use" context depended.=0A= >=0A= > The "use" statement is already used to "create an class name alias in the= =0A= > current namespace." and this makes "use" confusing.=0A= =0A= I don't think this additional usage of "use" makes it any more confusing.= =0A= Many keywords are reused=A0elsewhere=2C including "use":=0A= =A0- namespace importing=0A= =A0- variable importing for closures=0A= =A0- trait importing=0A= =0A= (Ditto with "as.")=0A= =0A= Thanks=2C=0A= Tom =