[Pharo-project] [squeak-dev] Compiler pedantic about ifNotNil: argument

Randal L. Schwartz merlyn at stonehenge.com
Sun Oct 10 10:34:02 EDT 2010


>>>>> "Igor" == Igor Stasenko <siguctua at gmail.com> writes:

Igor> i am also missing:

Igor> someThing ifTrue: 1 ifFalse: 0

Down that path lies ambiguity though.

If you had

  actionSymbol := aBoolean ifTrue: #doThis else: #doThat.

do you want the symbol assigned, or performed?

Please don't add so much dwimmery here.  I like it that Smalltalk is
fairly strict with these basic forms.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion




More information about the Pharo-dev mailing list