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

I know this is mostly about keyword substitution but it still tickles me that you still write f(x) in this language and not (x)f given that Korean is SOV but I guess that's just how you notate that no matter what cultural context you're in. Hadn't ever considered that the convention of writing a function before its arguments might have been a contingency of this notation being developed by speakers of SVO languages.
 help



I think this notation is superior, because of syntax completion - get_name(user.id) can be syntax completed by IDE, (user.id)get_name can't. Just like "SELECT id, name FROM users" would be better of as "FROM users SELECT id, name" (LINQ in C# fixed this mistake, and most modern query languages do too).

…if you’re typing from left to right. :)

Object oriented programming languages also use object.method rather than method(object), so I don't think prefix/suffix notation has much to do with language.



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

Search: