Re: [RFC][VOTE] Objects as Keys

From: Date: Wed, 17 Dec 2014 21:49:07 +0000
Subject: Re: [RFC][VOTE] Objects as Keys
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-79794@lists.php.net to get a copy of this message
Hi! > Just because you say it doesn't affect it doesn't mean it doesn't. I > think it would be quite silly to support storing hashes and/or storing > objects and to me that blocks the latter since you are proposing the > former. I don't know why you think it's "quite silly" to have both scalar and object keys, as that's exactly what would you need to implement with you want object keys - scalar keys are not going to go anywhere. So your assumption that this RFC somehow blocks objects as keys is still wrong. > Programmable hashes of objects should be external to the object anyway > because eventually someone wants to store the same object in a > different way in two different structures. That is the requirement that no language I can think of implements - Java, Python, Ruby, C# all have programmatic hash method, and none of them changes it for different structures. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#79794) next »