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

I think there is a reason for this, but maybe not a good one.

1. Function application should be left to right, e.g. `sqrt 4`

2. Precedence order should be very simple. In k, everything has the same precedence order (with the exceptions of brackets)

1 + 2 forces you to have this right to left convention, annoyingly.

Fwiw, I think 2 is great and I would rather give up 1 than 2. However, writing function application as `my_fun arg` is a very strong convention.



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

Search: