guilhermebla...@gmail.com wrote: > On Tue, Dec 16, 2014 at 9:39 AM, Matteo Beccati <p...@beccati.com> > wrote: > >> Are you sure you haven't misinterpreted the RFC? > > I did not. You may think I mentioned IdentityMap as entity map, but I'm > talking about entityPersister mapping or resultPointers consumptions that > happens inside Doctrine throughout the execution. Entity IdentityMap is > enough to use purely spl_object_hash(). We should focus on the main goal > here, which is complex structures as keys. > > As a very complex library developer I do see lots of use cases for this.
AIUI, this RFC is meant to introduce some sugar only. Wouldn't it be possible to have object hashes without __hash(), by introducing a respective interface (maybe "Hashable" or "Identifiable") and requiring the appropriate classes to implement this interface? -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php