riolet / rix

Rix language combines the power of C language and the convenience of a high level language
GNU General Public License v3.0
729 stars 27 forks source link

Boolean if CodeBlock pattern is confusing #39

Open rrezel opened 8 years ago

rrezel commented 8 years ago

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.