Richard O'Keefe wrote
> @James Foster:  100%.  There are no exceptions.
> 
> 
> On 1 August 2018 at 02:05, James Foster <

> Smalltalk@

> > wrote:
> 
>> To what extent is it required by ANSI that objects be of the same class?
>> Does Pharo treat a String and a Symbol as equivalent if they have the
>> same
>> characters?
>>
>> James
>>

Let's not throw the baby out with the bathwater...
Changing SequenceableCollection to do class comparison is a change people
can get behind without much effort; especially when there's a bug that has
to be resolved somehow, and it's the better overall change anyways.
Forcing Strings != Symbols is a harder sell (although personally, I'd love
to see it).
Forcing WideStrings != ByteStrings is never going to happen; but perhaps
that can be said to be compliant due to the phrasing "Unless specifically
refined", and neither being defined in the standard.
Interval/Array (and String/Symbol) don't have the same excuse.

Cheers,
Henry




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to