Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)))


Fair 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

?




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: