Message Eating Null - article

Keith Hodges keith_hodges at yahoo.co.uk
Thu Jul 26 19:06:32 UTC 2007


 
>
>
> Yuck, I wouldn't do either of those.  I would do:
>
> widget setStringValue: #(office phone lastNumberDialed asString) 
> inject: person into: [:obj :sel| o == nil ifTrue: [ nil ] ifFalse: [ 
> obj sel ] ]
>
> ------------------------------------------------------------------------
you would?

To me the above looks as close to perl as smalltalk is hopefully ever 
likely to get!

;-)

Keith

p.s. Someone once accused me of being a PL/1 programmer in a former life.




More information about the Squeak-dev mailing list