|
Hi, (IdentitySet with: Object new) asSet returns an instance of IdentitySet containing an object. This behavior is surprising. I would expect to return an Instance of Set as the class it's only compatible but not the same. There are multiple ways to fix that according to the semantics you want to honor. A less more obvious issue with the current implementation is that this method isn't returning a copy of the original object, which of course is fast but arguably dangerous.
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|