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

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Aug 15 08:42:39 UTC 2019


Okay, thanks for your feedback :)


-Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Donnerstag, 15. August 2019 10:39:18
An: gettimothy via Squeak-dev
Betreff: Re: [squeak-dev] The Inbox: Kernel-ct.1258.mcz

-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/d6243ee7/attachment.html>


More information about the Squeak-dev mailing list