Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74677 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38875 invoked from network); 1 Jun 2014 19:28:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2014 19:28:45 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; 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 imap2-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:55037] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/64-15017-CEE7B835 for ; Sun, 01 Jun 2014 15:28:44 -0400 Received: from [192.168.0.200] (unknown [90.203.28.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 015FC5A00CD; Sun, 1 Jun 2014 15:28:40 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) In-Reply-To: <538B7DEC.4020704@gmail.com> Date: Sun, 1 Jun 2014 20:28:38 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <269E17AB-C31C-472D-914B-51C97C0B2E72@ajf.me> References: <6E3D6B3F-1BD6-42A2-B59C-12B9D6D597ED@ajf.me> <538B7DEC.4020704@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.1878.2) Subject: Re: [PHP-DEV] [RFC] Bare Name Array From: ajf@ajf.me (Andrea Faulds) On 1 Jun 2014, at 20:24, Rowan Collins wrote: > As others have pointed out, PHP has an additional burden here that = *all* barewords in an array literal are currently constant references. Right. Hence, I add a syntax that treats the string as a bare word = rather than a constant. The =3D> operator still works as usual and deals = with expressions, but : deals with bare words. -- Andrea Faulds http://ajf.me/