> On 3 Feb 2025, at 06:33, Richard O'Keefe <rao...@gmail.com> wrote:
>
> Not that anyone else probably cares, but the ANSI standard says
> - for All objects x y, x = y if and only if y = x.
> The Smalltalk-80 mixup over String and Symbol violated this,
> ‘X’ = #x but #x ~= ‘x’.
> - two sequences are = iff they are the same size, corresponding elements are
> =, AND they are instances of the same class.
That seems to be a very limited view of equality (that the class has to be the
same for all definitions of equality).
To me that means it models more the technical detail of Implementation, not the
Domain.
> - String is not a special case.
>
But String *is* a special case:
'hello' asWideString = 'hello' "true"
'hello' asWideString class = 'hello' class "false"
Marcus