Re: [RFC] Using objects as keys

From: Date: Thu, 30 Oct 2014 20:28:46 +0000
Subject: Re: [RFC] Using objects as keys
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-78487@lists.php.net to get a copy of this message
> On 30 Oct 2014, at 19:51, Will Fitch <willfitch@fastmail.fm> wrote: > > My only concern at this point is the default value of the hash. If we were to use spl > _object_hash, we could be setting a precedence that a hash must be unique to each object. In addition to what Stas says above, well, not all objects work like that. What if I want objects to hash by value, not by identity? Don’t force the identity model. -- Andrea Faulds http://ajf.me/

« previous php.internals (#78487) next »