3 ms·
In Lisp and Smalltalk it's obvious enough how composite expressions are evaluated, and they don't have the usual infix syntax to begin with. Pony does and the
by tempodox 8y ago
In Lisp and Smalltalk it's obvious enough how composite expressions are evaluated, and they don't have the usual infix syntax to begin with. Pony does and the different precedences are just a bad surprise. As far as that's a design decision, I'd call it bad design.
- coldtea 8y ago>In Lisp and Smalltalk it's obvious enough how composite expressions are evaluated, and they don't have the usual infix syntax to begin with. That's Lisp. In Smalltalk they do (have the usual infix syntax).
- kazinator 8y ago> have the usual infix syntax Isn't it the case that all operators in Smalltalk have the same precedence and left-to-right associativity? That's not "the usual" infix syntax.
- coldtea 8y agoUsual referring to the mere "infix syntax" part (as opposed to some other kind of syntax that isn't infix). Not to having "infix syntax plus the associativity / precedence you get in C". We've already established that it doesn't have the usual precedence. The distinction was with e.g. Lisp which has a prefix syntax (polish notation), and other more exotic styles.