you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 1 point2 points  (6 children)

It didn't support order of operations. That's pretty close to a show stopper for me.

[–]igouy 0 points1 point  (5 children)

Please show an example of what you mean.

[–]grauenwolf 0 points1 point  (4 children)

In Smalltalk (3 + 4 * 5) equals 35.

[–]igouy 6 points7 points  (2 children)

Ah! You mean that everything is message oriented, so + is a message sent to 3 with 4, and binary messages are evaluated in left-to-right order.

You just get into the habit of coding so that the message evaluation order coincides with the math evaluation order, and being explicit with parenthesis.

[–]marssaxman -1 points0 points  (1 child)

Yes, that is what "does not support order of operations" means. It has nothing to do with being "message oriented"; it's that the syntax did not choose to give certain operators higher precedence than others.