4 ms·
But it is the switching from infix operators to prefix operator that is making the second example less readable (and the implicit precedence of the operators).
by seppel 5y ago
But it is the switching from infix operators to prefix operator that is making the second example less readable (and the implicit precedence of the operators). Writing it as
(a times (b plus c)) equals ((a times b) plus (a times c))
would be a fair comparison, which is much more readble than
=(*(a, +(b, c)), +(*(a, b), *(a, c)))
- yiyus 5y agoFair enough, the change from infix to prefix was misleading. But do you (or anyone) find (a times (b plus c)) equals ((a times b) plus (a times c)) easier to read than a*(b+c) = a*b + a*c ?