Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40251 invoked from network); 7 Jul 2014 14:46:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2014 14:46:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:42157] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/14-19233-FC2BAB35 for ; Mon, 07 Jul 2014 10:46:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 42CAD8800E2; Mon, 7 Jul 2014 10:46:36 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vXoSEmjIkJEh; Mon, 7 Jul 2014 10:46:36 -0400 (EDT) Received: from andreas-air.home (host86-172-51-137.range86-172.btcentralplus.com [86.172.51.137]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id D76AB8800CB; Mon, 7 Jul 2014 10:46:34 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) In-Reply-To: Date: Mon, 7 Jul 2014 15:46:30 +0100 Cc: Nikita Popov , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <4BB5E7E4-BCED-4271-BECC-804A1EDD4E53@ajf.me> References: To: Laruence X-Mailer: Apple Mail (2.1878.2) Subject: Re: [PHP-DEV] [VOTE] Uniform Variable Syntax From: ajf@ajf.me (Andrea Faulds) On 7 Jul 2014, at 15:42, Laruence wrote: > 1. "The current patch introduces a new =93write context=94 issue. = Namely > ($foo)['bar'] =3D 'baz' will not behave this same was as $foo['bar'] =3D= > 'baz'. In the former case an undefined variable notice will be thrown > if $foo does not exist, whereas the latter does not throw a notice." >=20 > 2. "As these changes only apply to some very rarely used syntax, the > breakage seems acceptable for PHP 6." >=20 >=20 > I don't think we should introduce a new thing which is not perfect or > "confused".. it looks like we fixed a mess with a new mess. >=20 > it make me think we should : "don't fix it until it is broken=94 We are fixing what is broken here; the variable syntax is = counter-intuitive at the moment, and they make the syntax more = consistent overall. Also, parentheses in PHP are always a source of issues. I don=92t think = they=92ll ever quite work properly unless we switch to using an = AST-based parser someday. -- Andrea Faulds http://ajf.me/