Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74692 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87607 invoked from network); 2 Jun 2014 08:47:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2014 08:47:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:39181] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/1B-15017-33A3C835 for ; Mon, 02 Jun 2014 04:47:48 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 1E157FA15B; Mon, 2 Jun 2014 09:47:43 +0100 (BST) Date: Mon, 2 Jun 2014 10:47:43 +0200 (CEST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Andrea Faulds cc: PHP internals In-Reply-To: <6E3D6B3F-1BD6-42A2-B59C-12B9D6D597ED@ajf.me> Message-ID: References: <6E3D6B3F-1BD6-42A2-B59C-12B9D6D597ED@ajf.me> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1863633569-1401698848=:5108" Subject: Re: [PHP-DEV] [RFC] Bare Name Array From: derick@php.net (Derick Rethans) --8323329-1863633569-1401698848=:5108 Content-Type: TEXT/PLAIN; CHARSET=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 1 Jun 2014, Andrea Faulds wrote: > Good evening, >=20 > I have created an RFC containing two proposals. >=20 > The first is a less cumbersome syntax for arrays. At present, string=20 > keys in arrays are declared like this: >=20 > =E2=80=9CstringKey=E2=80=9D =3D> 3, >=20 > That=E2=80=99s a whole five characters, seven including spaces, for your = most=20 > common case (identifier-like key). In JavaScript, you can avoid=20 > quoting the key for this common case. I propose something similar for=20 > PHP. Where the key fits the profile of IS_STRING, this RFC proposes=20 > that you can do this instead: >=20 > stringKey: 3, We already voted no for this when discussing the short array syntax. See=20 the vote under "Array short syntax" at=20 https://wiki.php.net/todo/php54/vote cheers, Derick --=20 http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine --8323329-1863633569-1401698848=:5108--