In article <5k1j3f$fp3@roar.cs.utexas.edu>,
Paul Wilson <wilson@cs.utexas.edu> wrote:
>In article <E9AxB1.7nA@ecf.toronto.edu>,
>Patrick Doyle <doylep@ecf.toronto.edu> wrote:
>>
>>I think if a language has the concept of mutability, then it should also
>>have the concept of object identity because both the cases presented in
>>the previous paragraph are very useful in different curcumstances.
>>
>>Of course if a language has no mutability, then object identity is
>>unnecessary.
>
>I'm not sure that even the latter is right. It seems to me that it
>can be reasonable to use object identity to represent conceptual-level
>identities, even in purely functional programs.
Can you give an example of two immutable objects, alike in every way,
which need to be distinguished?
-PD
--
--
Patrick Doyle
doylep@ecf.utoronto.ca
|