The Inbox: Collections-ct.930.mcz

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

The Inbox: Collections-ct.930.mcz

commits-2
A new version of Collections was added to project The Inbox:
http://source.squeak.org/inbox/Collections-ct.930.mcz

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

Name: Collections-ct.930
Author: ct
Time: 11 March 2021, 10:56:52.528559 am
UUID: 6b1a0ee3-8c2d-a547-9ee2-f029a32d07b7
Ancestors: Collections-nice.929

Uses oxford comma in #asCommaStringAnd.

Full discussion is here: http://forum.world.st/The-Inbox-Tools-ct-1015-mcz-tp5124286p5127654.html

=============== Diff against Collections-nice.929 ===============

Item was changed:
  ----- Method: Collection>>asCommaStringAnd (in category 'printing - obsolete') -----
  asCommaStringAnd
  "Return collection printed as 'a, b and c' "
 
  self flag: #deprecate.
+ ^String streamContents: [:s | self asStringOn: s delimiter: ', ' last: ', and ']
- ^String streamContents: [:s | self asStringOn: s delimiter: ', ' last: ' and ']
  !


Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Collections-ct.930.mcz

Christoph Thiede
Huh, why is this marked as to be deprecated? I think we could at least keep
it on SequenceableCollection - I use this useful selector quite often ...

Best,
Christoph



-----
Carpe Squeak!
--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html

Carpe Squeak!