logoalt Hacker News

adverbly • today at 1:41 PM • 2 replies • view on HN

That actually makes so much sense...

When you're calling a function, you're putting some things into the function... You have to get the things first before you can put them in...

Why didn't it evolve like that in the first place? Is it a byproduct of mathematical notation? If so, I wonder why mathematical notation evolved that way in the first place...


Replies

baruchel • today at 1:54 PM

Forth (or Postscript by the way) works exactly like that, but writing the function first also makes sense in functional programming, specifically when you care about currying functions: writing "f(g(h(x)))" (or "f g h x" or whetever) makes more sense, since you are not supposed to put all expected arguments at once.

➕ show 1 reply
stronglikedan • today at 1:52 PM

> Why didn't it evolve like that in the first place?

It did, just in Arabic.