What to believe?

Blake blake at kingdomrpg.com
Tue Jun 26 20:45:22 UTC 2007


On Tue, 26 Jun 2007 13:24:39 -0700, Piers Cawley <pdcawley at bofh.org.uk>  
wrote:

> What is a young Smalltalker to do? SmallLint forcefully suggests that:
>
> ^ Preferences optionalButtons
>     ifTrue: [OBFixedButtonPanel new]
>
> should be rewritten as:
>
> ^ Preferences optionalButtons
>     ifTrue: [OBFixedButtonPanel new]
>     ifFalse: [nil]
>
> which would be fine, but as soon as I try and pretty print the
> rejigged method, it reverts to the version without the ifFalse:
> clause?

The latter strikes me as silly. In a language where "if" is part of the  
grammar, I can see it sort-of making sense, especially if nesting "if"s,  
to include "else"s with NOPs.






More information about the Squeak-dev mailing list