Nov. 1, 2016
3:39 p.m.
Am 01.11.2016 um 12:21 schrieb Esteban Lorenzano:
On 1 Nov 2016, at 11:39, jtuchel@objektfabrik.de <mailto:jtuchel@objektfabrik.de> wrote:
are they also implemented in UndefinedObject?
no, because empty != nil
I know. That's exactly the reason why I never use isEmptyOrNil ð Fun aside: how often do we need to check if some code returns nil or an empty collection. My question was aimed at exactly this: in practice ifEmptyOrNil: would probably be even more frequently needed than ifEmpty:. Otherwise, the beautiful convenience method has to be guarded by a nil test.... so we end up writing lots of methods, and not all of them seem to be universal enough to be part of the base image, imo. Joachim
Esteban