Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75316 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42397 invoked from network); 7 Jul 2014 14:54:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2014 14:54:44 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:45550] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/84-19233-1B4BAB35 for ; Mon, 07 Jul 2014 10:54:41 -0400 Received: by mail-la0-f46.google.com with SMTP id el20so3001317lab.33 for ; Mon, 07 Jul 2014 07:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=NcYJcw+ymXJ3CfHUphGcswwp7ce/s+bUHEBfgFm6fMo=; b=ORR7rnBhs0ydipu/W3V1dzpu8lGl4ubYjyy/90/1uslrsea5KmCylLcPByWwgJAhkI 53QqhfvuOqBcOGOoKBosic4wEEcJrB/2Nu7Jtyk8kKAGTyjVDnYAjWclGPlV6xnJcmbK xAsk1bbeUmksJD8DJNTh7FuEHQ1fdd7L8qpObs95DB9d8dfIu7X+uJ+tamDUanvrtZj0 z1xPdk5mGxn31gbCtXgeKlBsKcHrt1LSPHOiW9XgumRZKVHmPaGdtxoVjzgD/kuGbeKu BXRJOBIbNgvHasuahpA2k/y8GcDSWh97xMHovBDZU54tdNMufHItXAJqe33BqKevEdcf seRQ== X-Received: by 10.152.6.99 with SMTP id z3mr157655laz.95.1404744878389; Mon, 07 Jul 2014 07:54:38 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.160.231 with HTTP; Mon, 7 Jul 2014 07:54:18 -0700 (PDT) In-Reply-To: <4BB5E7E4-BCED-4271-BECC-804A1EDD4E53@ajf.me> References: <4BB5E7E4-BCED-4271-BECC-804A1EDD4E53@ajf.me> Date: Mon, 7 Jul 2014 22:54:18 +0800 X-Google-Sender-Auth: 5MyGSuiWIr6Bn7pV960DY_oTvWA Message-ID: To: Andrea Faulds Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Uniform Variable Syntax From: laruence@php.net (Laruence) On Mon, Jul 7, 2014 at 10:46 PM, Andrea Faulds wrote: > > On 7 Jul 2014, at 15:42, Laruence wrote: > >> 1. "The current patch introduces a new =E2=80=9Cwrite context=E2=80=9D i= ssue. 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." >> >> 2. "As these changes only apply to some very rarely used syntax, the >> breakage seems acceptable for PHP 6." >> >> >> 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. >> >> it make me think we should : "don't fix it until it is broken=E2=80=9D > > We are fixing what is broken here; the variable syntax is counter-intuiti= ve at the moment, and they make the syntax more consistent overall. > > Also, parentheses in PHP are always a source of issues. I don=E2=80=99t t= hink they=E2=80=99ll ever quite work properly unless we switch to using an = AST-based parser someday. then we won't need to temporarily fix it.. anyway, it's just my 2 cents thanks > -- > Andrea Faulds > http://ajf.me/ > > > > --=20 Laruence Xinchen Hui http://www.laruence.com/