Re: [RFC][VOTE] Objects as Keys

From: Date: Wed, 17 Dec 2014 01:52:20 +0000
Subject: Re: [RFC][VOTE] Objects as Keys
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-79763@lists.php.net to get a copy of this message
Hi Stas, > On 17 Dec 2014, at 01:32, Stanislav Malyshev <smalyshev@gmail.com> wrote: > > Hi! > >> AIUI, this RFC is meant to introduce some sugar only. Wouldn't it be > > 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’s not true: the RFC doesn’t 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/

« previous php.internals (#79763) next »