Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75006 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77301 invoked from network); 19 Jun 2014 23:57:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2014 23:57:44 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.213.175 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.213.175 mail-ig0-f175.google.com Received: from [209.85.213.175] ([209.85.213.175:51165] helo=mail-ig0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/E2-61414-7F873A35 for ; Thu, 19 Jun 2014 19:57:43 -0400 Received: by mail-ig0-f175.google.com with SMTP id h3so2726249igd.8 for ; Thu, 19 Jun 2014 16:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=6/6F/4riOuky1yFeEbQ4KSAcYf3qEyspqmFLQ6AII78=; b=rOsretzTDYp5ktNHGwYZ6zPr1un+qkt7msb6qYvRaIzj6cRBAfwJlo+v3/Gk7S78yP PMzix3bvZ5tewYWDtqxgXSLjww3Mz9DKwBFIHglF8vygWLo7/ba5AXVHAIJ+OgB+b1nC i8q5iZlVz6RGhkCwVAo5VgfNtwY1cBpCIR3AI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=6/6F/4riOuky1yFeEbQ4KSAcYf3qEyspqmFLQ6AII78=; b=h+RF2FM38fMgFFFo3KfGc/Ovj64WOn7/kAYFsgHMj2gqMyVoFslWl/FSsM+uhIdJOb M7OapcNTGDJIpQjotNK1luUoSkzaSWPM6EqkvjGdJwFH9+eSy+ILW9u1PUJo3EVfkcR4 FzSTYEqRtOE9KZxCXEfadkfp2Vk2fTWLK5GUuw3DT7Z1OVt23rpgN80ZD5CpOKR7MF8y l4XvnES6/Oqanl6sfoxw9KhuY41GZNy4YRYmJ8tgNaP/jo+KZYvCFSC12MDE8ZFIZmbj 9zSj31U4Z9xfqmROK5vn3TPg5PpvOVQ2Qo0/Jc+ZaP1/+YujDgYZGTwFpEd+TRWaFNvF k4bA== X-Gm-Message-State: ALoCoQnYuSINbbrQGrBX/pQQv2pfCaAGsXGKvUb9mZ97Gpjy0La5GsWHNPtkB3/nXtS2fL2igAW/ X-Received: by 10.42.98.145 with SMTP id s17mr9198832icn.73.1403222260497; Thu, 19 Jun 2014 16:57:40 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.42.254.138 with HTTP; Thu, 19 Jun 2014 16:57:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Jun 2014 16:57:20 -0700 X-Google-Sender-Auth: dmndvG4BgnyU9zH_iGNYQGOZVYM Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Bare Name Array Literal/Dereference From: aharvey@php.net (Adam Harvey) I try to be in the habit of explaining my -1s, so I'll explain them below. They're both reasons that came up in the earlier discussion thread. On 19 June 2014 16:44, Andrea Faulds wrote: > https://wiki.php.net/rfc/bare_name_array_literal#vote Johannes isolated an issue I kind of danced around in my own thinking here: http://news.php.net/php.internals/74694 =E2=80=94 the difference in behaviour between a constant called FOO when you have [FOO: ''] versus [FOO =3D> ''] is extremely unintuitive, and is going to burn users. Sadly, this probably means there isn't a sensible way to implement unquoted keys in PHP array declarations, no matter how you slice the syntax. Such is life. > https://wiki.php.net/rfc/bare_name_array_dereference#vote As I said earlier, I think the syntax here is visually confusing with object property/method access. If there was an obvious digraph that was completely distinct from -> and still somehow implied array member access I'd be more open to this, but I really can't think of one, and :> isn't it. Adam