Re: [RFC][VOTE] Objects as Keys
| From: | Matteo Beccati | Date: | Tue, 16 Dec 2014 11:35:38 +0000 |
| Subject: | Re: [RFC][VOTE] Objects as Keys | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79718@lists.php.net to get a copy of this message | ||
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/