|
The copy guarantee isn't a big issue, especially if people are generally aware that conversions don't always guarantee a copy.
In my opinion the relationship between strings and wide strings isn't the same as between sets and identity sets. In the former case String and WideString are basically providing the same semantically compatible behavior: they are 2 different classes just to provide more efficient internal behavior depending on the elements(characters) they are holding. Sets and identity sets have least one explicit semantic difference: discriminating against equality or identity. So in the latter case if a method named #asSet it simply makes sense to me to expect it to return an instance of Set.
Yes, probably it would make more sense for Set and IdentitySet to share a common ancestry instead of having one being the superclass of the other. I have to do some thinking about it.
Federico
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|