Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34822 invoked from network); 17 Dec 2014 01:52:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2014 01:52:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:43090] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/81-25720-AD1E0945 for ; Tue, 16 Dec 2014 20:52:27 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id C01C0B0008A; Tue, 16 Dec 2014 20:52:23 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pEBsLErxMLIn; Tue, 16 Dec 2014 20:52:23 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 7EB97B0008E; Tue, 16 Dec 2014 20:52:22 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <5490DD19.2080502@gmail.com> Date: Wed, 17 Dec 2014 01:52:20 +0000 Cc: Christoph Becker , "guilhermeblanco@gmail.com" , Rowan Collins , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <548FEE87.7020602@gmail.com> <549009EE.7040808@fischer.name> <54907683.2070509@gmail.com> <8AB6896C-D5DB-4471-BBD5-60784B2FC1BE@gmail.com> <54907EDE.6020500@gmail.com> <4E4F7392-154C-4282-8D5D-553194D09DCE@gmail.com> <5490DC22.2080605@gmx.de> <5490DD19.2080502@gmail.com> To: Stanislav Malyshev X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC][VOTE] Objects as Keys From: ajf@ajf.me (Andrea Faulds) Hi Stas, > On 17 Dec 2014, at 01:32, Stanislav Malyshev = wrote: >=20 > Hi! >=20 >> AIUI, this RFC is meant to introduce some sugar only. Wouldn't it be >=20 > I'm not sure what you mean by "some sugar only". It introduces the > capability of using objects in array key context, which was not > available until now. That=E2=80=99s not true: the RFC doesn=E2=80=99t allow objects to be = keys, it just adds implicit conversion. This is just sugar for an = explicit conversion to int or string. -- Andrea Faulds http://ajf.me/