[Grace-core] Collection naming

James Noble kjx at ecs.vuw.ac.nz
Thu Jul 3 16:29:32 PDT 2014


On 4/07/2014, at 04:52 am, Andrew P. Black <black at cs.pdx.edu> wrote:

>> perhaps - but it could equally be misleading / surprising - because the behaviour of equals
>> will now be different depending upon collection mutability - so arguably bad practice.
> 
> But you have been arguing for exactly this difference for three years!  That is, that we should use eval, which means equality for immutable things and identity for mutable things.

duh. you're right of course.  
I guess I wasn't aware of Python's design - separating hashable from equals...

J


More information about the Grace-core mailing list