Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean if CodeBlock pattern is confusing #39

Open
rrezel opened this issue Dec 8, 2015 · 0 comments
Open

Boolean if CodeBlock pattern is confusing #39

rrezel opened this issue Dec 8, 2015 · 0 comments

Comments

@rrezel
Copy link
Contributor

rrezel commented Dec 8, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant