Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65171 invoked from network); 25 Mar 2016 10:51:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2016 10:51:57 -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.220 as permitted sender) X-PHP-List-Original-Sender: tpunt@hotmail.co.uk X-Host-Fingerprint: 157.55.0.220 dub004-omc1s21.hotmail.com Received: from [157.55.0.220] ([157.55.0.220:62761] helo=DUB004-OMC1S21.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/01-15440-C4815F65 for ; Fri, 25 Mar 2016 05:51:57 -0500 Received: from DUB129-W36 ([157.55.0.238]) by DUB004-OMC1S21.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 25 Mar 2016 03:51:52 -0700 X-TMN: [kAT9icTwpwmULmiZP1HvyYmzzZnG/FUM] X-Originating-Email: [tpunt@hotmail.co.uk] Message-ID: To: Dmitry Stogov , Mutlu Kocak , Colin O'Dell CC: PHP Internals Date: Fri, 25 Mar 2016 10:51:52 +0000 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: 25 Mar 2016 10:51:52.0974 (UTC) FILETIME=[575972E0:01D18684] Subject: RE: [PHP-DEV] [VOTE] var deprecation From: tpunt@hotmail.co.uk (Thomas Punt) Hi Dmitry=2C=0A= =0A= > Java is going to add "var" (http://openjdk.java.net/jeps/286)=2C we are g= oing to remove...=0A= =0A= We're not going to remove the "var" keyword=2C just deprecate its usage in= =0A= the context of=A0setting properties as public. The "var" keyword will still= =0A= remain a reserved word=2C and=A0it can therefore still be reused in other p= laces=0A= if we so wish (as=A0has been done with "use"=A0for namespaces=2C traits=2C = and=0A= closures=2C as well as "as" in foreach=2C namespaces=2C and traits).=0A= =0A= So whilst Java is adding "var" for a short-hand declaration via type infere= nce=2C=0A= it is only=A0applicable to local variables and not properties. Deprecating = "var"=0A= in this context for PHP is therefore not really the inverse of what Java is= doing.=0A= =0A= -Tom =