Manuscript (Case [Issue]22652) String - collect: over Strings is broken

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22652) String - collect: over Strings is broken

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  String: 1. Pharo Image  •  You are subscribed to this case
IMHO It doesn't matter what Strings are storing, collect: is for transformation. The usual case is to return another kind of object, not necessarily the same kind. There's other similar cases, for example

|sorted|
sorted := #(1 2 -5 0) asSortedCollection:[:a :b | a sign <= b sign ].
sorted collect: [ :number | number asString ]

will return an OrderedCollection, even when sorted is a SortedCollection
Priority Priority: 1 – Show Stopper !!!!!! Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker