Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75317 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44339 invoked from network); 7 Jul 2014 15:03:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2014 15:03:43 -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.53 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:48620] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/00-44309-DC6BAB35 for ; Mon, 07 Jul 2014 11:03:42 -0400 Received: by mail-la0-f53.google.com with SMTP id b8so2943035lan.40 for ; Mon, 07 Jul 2014 08:03: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=iqQFNyH4vqmvekVWX8i5Fclop82Gjv+OX0c2GhWJZCE=; b=RXUJBe9yV1i2OmrFGF7O8OiG8UIII/Tc8DCbJEQ5bBnolaknAh9KnT9KrvR22bRhCR +cP+xIObFm0GLZdg0xjTPhhVod3FOCrCNrBvzvCRQu+gqHO6hSB4RQfmp8FInDGshUnK xVgApOruLhhzebEZ7cpyQU5xt0ODAyhHuSp0D8i4lJMTchasDkpXFLWMtYHDpwrQ4uFN 9iXcQmcvsJ+YCPaO5cUYxXmGAmDdr04PchfeKZ9eqWOKNGjOObvb7hrLh/1BB92jp7Di RasTXazDKa328SVV4IT+lZyEIL+dHx3RbHgoBevCA7YNas6vv7EPeBuTR1/o5wM7HRx9 nDpg== X-Received: by 10.152.45.99 with SMTP id l3mr23455185lam.5.1404745418562; Mon, 07 Jul 2014 08:03:38 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.160.231 with HTTP; Mon, 7 Jul 2014 08:03: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 23:03:18 +0800 X-Google-Sender-Auth: pLUYXrVfzMxFZHA2or8ht8Jn2Cs 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) Hey: 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. I've change my opinion..... I will vote for yes... thanks > -- > Andrea Faulds > http://ajf.me/ > > > > --=20 Laruence Xinchen Hui http://www.laruence.com/