On Tue, 2014-10-21 at 10:30 -0700, Stas Malyshev wrote:
> Hi!
> 
> > I wish there was a way for specific objects to opt into this.
> 
> There will be, if __hashKey() or whatever would be the properly
> bikeshedded name, becomes reality as discussed elsewhere. It shouldn't
> be hard to do and it's exactly what many other languages do when trying
> to use objects as keys for maps.
> 
> 

Not ready for discussion yet ...

https://wiki.php.net/rfc/hashkey

But it exists, I think it solves a problem for ustring in particular but
it solves the problem in general too. No time to write about it or
discuss it at this moment, but in pipeline, hopefully ...

Cheers
Joe


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

Reply via email to