|
From: Lars H. <he...@se...> - 2010-02-05 17:46:28
|
Forgot to include the list.... again...
This is a forwarded message
Date: Friday, February 5, 2010 4:11:31 PM
Subject: [Phptmapi-discuss] Construct::equals() and Construct::hashCode()
===8<==============Original message text===============
Hi Johannes,
[...]
>> Well, my proposal was to remove hashCode() and equals() since they
>> wouldn't be used by PHP anyway (i.e. if something is added as key to
>> an array), but the behaviour of the implementations must be
>> predictable of course (c.f. unit tests).
> not sure what you mean by "predictable". Do you have an example?
predictable: All implementations must behave the same. You wrote in
another e-mail:
"""
[...] comparison of objects is then delegated to implementors
"""
I just wanted to ensure this does not open the door for
incompatibilities between implementations.
Best regards,
Lars
--
Semagia
<http://www.semagia.com>
===8<===========End of original message text===========
|