[squeak-dev] The Inbox: Kernel-ct.1258.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Thu Aug 15 08:39:18 UTC 2019


-1 :-)

Yet, it reminds of the interface I added in Vivide:

anObject asList "=> { anObject }"
nil asList "=> #()"
someObjects asList "=> someObjects"

aDictionary asList "=> { aDictionary }"
aString asList "=> { aString }"
aText asList "=> { aText }"
aByteArray asList "=> "{ aByteArray }"
aHashedCollection asList "=> aSequenceableCollection"
aCharacterSet asList "=> aCharacterSet or aSequenceableCollection if not enumerable"

And similar for #isList. :-) Makes working with collections of domain objects much easier.

Best,
Marcel
Am 15.08.2019 00:11:23 schrieb commits at source.squeak.org <commits at source.squeak.org>:
A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-ct.1258.mcz

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

Name: Kernel-ct.1258
Author: ct
Time: 15 August 2019, 12:11:10.7644 am
UUID: fbc76d48-44ce-1c40-91f2-2c73171c7981
Ancestors: Kernel-mt.1257

[Proposal] Implement #isEmptyOrNil on Object

Allows extended polymorphy.

=============== Diff against Kernel-mt.1257 ===============

Item was added:
+ ----- Method: Object>>isEmptyOrNil (in category 'testing') -----
+ isEmptyOrNil
+
+ ^ false!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190815/c3d12090/attachment.html>


More information about the Squeak-dev mailing list