[Pharo-project] why #ifNotNil: accepts parameter?

Lukas Renggli renggli at gmail.com
Tue Jan 27 08:05:49 EST 2009


> I'm trying to understand why pharo modifies squeak behavior of
> ifNotNil: and introduces the optional parameter... is there a reason?

Squeak for that matter is incompatible with all other existing
Smalltalk implementations. Luckily that was changed in Pharo. the
compiler can easily figure out if an argument needs to be passed into
the block or not. There is really no need for all these ugly #...Do:
methods.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the Pharo-dev mailing list