[squeak-dev] The Trunk: Collections-ct.982.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jan 29 20:53:30 UTC 2022


Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.982.mcz

==================== Summary ====================

Name: Collections-ct.982
Author: ct
Time: 29 January 2022, 9:53:27.446695 pm
UUID: 2ec70a0d-4921-1e4b-997a-3aae713f2754
Ancestors: Collections-cmm.981

Reverts Collections-ct.980 (convenience selectors on Stream for Collections polymorphy). We do not want to promote this redundant pattern further. Clients should combine the single selectors instead, i.e., (aCollectionOrStream select: [...]) do: [...] rather than aCollectionOrStream select: [...] thenDo: [...].

=============== Diff against Collections-cmm.981 ===============

Item was removed:
- ----- Method: Stream>>collect:thenDo: (in category 'collections - enumerating') -----
- collect: collectBlock thenDo: doBlock 
- 
- 	^ (self collect: collectBlock) do: doBlock!

Item was removed:
- ----- Method: Stream>>collect:thenSelect: (in category 'collections - enumerating') -----
- collect: collectBlock thenSelect: selectBlock
- 
- 	^ (self collect: collectBlock) select: selectBlock!

Item was removed:
- ----- Method: Stream>>reject:thenDo: (in category 'collections - enumerating') -----
- reject: rejectBlock thenDo: doBlock 
- 
- 	^ (self reject: rejectBlock) do: doBlock!

Item was removed:
- ----- Method: Stream>>select:thenDo: (in category 'collections - enumerating') -----
- select: selectBlock thenDo: doBlock 
- 
- 	^ (self select: selectBlock) do: doBlock!



More information about the Squeak-dev mailing list