Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79718 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5550 invoked from network); 16 Dec 2014 11:35:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2014 11:35:55 -0000 Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.114.167 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.114.167 spritz.beccati.com Received: from [176.9.114.167] ([176.9.114.167:55423] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/F5-07463-81910945 for ; Tue, 16 Dec 2014 06:35:55 -0500 Received: (qmail 8487 invoked from network); 16 Dec 2014 11:35:49 -0000 Received: from home.beccati.com (HELO ?192.168.1.202?) (88.149.176.119) by mail.beccati.com with SMTP; 16 Dec 2014 11:35:49 -0000 Message-ID: <5490190A.6050805@beccati.com> Date: Tue, 16 Dec 2014 12:35:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Andrea Faulds , Markus Fischer CC: internals@lists.php.net References: <548FEE87.7020602@gmail.com> <549009EE.7040808@fischer.name> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC][VOTE] Objects as Keys From: php@beccati.com (Matteo Beccati) On 16/12/2014 11:52, Andrea Faulds wrote: > This is the main problem with the RFC: magic, implicit, one-way data > loss (object to integer/string). > > I was previously in favour of this, but it’d prevent actual indexing > by objects in future, and I can’t think of any use cases which aren’t > better solved by explicitly converting to a string/integer. That's precisely the same reason why I voted Nay. And I wouldn't have been able to put it down in words better than Andrea did. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/