Hi Stas,

On 27/10/2014 18:39, Etienne Kneuss wrote:
> I think it should be made clear that what the target of your RFC is not to
> support objects as keys, what you propose instead is an implicit
> translation from:
> 
> $a[$obj]
> to
> $a[$obj->__hash()]
> 
> This is clearly different.

I agree the RFC should make it very clear that foreach, key(),
array_keys(), etc. will just return the hash, not the object instance.

I for one was a bit confused and couldn't tell if that was the case
after reading the entire RFC.


Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to