[squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest)
bert at freudenbergs.de
Thu Mar 4 19:44:33 UTC 2010
On 04.03.2010, at 20:38, keith wrote:
> Another way of doing this, (last seen in SmalltalkAgents) is to implement askFor:
> anObject askFor: #isMorph.
> We had an ongoing debate on mantis as to whether this should return nil or false by default. (I prefer false, my more purist friends appear to prefer nil) if the selector is not implemented. I would favour this approach because askFor: is useful for other purposes, and in a world where things are more modular and less tightly coupled, it can be useful to have askFor: and askFor: aSelector ifAbsent:
Wouldn't that be more aptly named perform:ifAbsent: ?
- Bert -
More information about the Squeak-dev