rix icon indicating copy to clipboard operation
rix copied to clipboard

Boolean if CodeBlock pattern is confusing

Open rrezel opened this issue 10 years ago • 0 comments

Wouldn't it be better to call this operation then? So <boolean> then <codeblock> and <boolean> then <codeblock>, else <codeblock>


if what?

<boolean> ifTrue: <codeblock> ifFalse: <codeblock>

<boolean> ifTrue: <codeblock> 

<boolean> ifFalse: <codeblock>

Smalltalk-80


(n == 2) if This is bizarre. Why are you using your language strangeness budget on something that is no shorter and a good deal less obvious what it's doing (you have to finish reading the line before you learn the most important piece of information about the line). if n == 2 would be much better.

rrezel avatar Dec 08 '15 16:12 rrezel