| ▲ | adverbly 4 hours ago | |||||||
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... | ||||||||
| ▲ | baruchel 4 hours ago | parent | next [-] | |||||||
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. | ||||||||
| ||||||||
| ▲ | stronglikedan 4 hours ago | parent | prev [-] | |||||||
> Why didn't it evolve like that in the first place? It did, just in Arabic. | ||||||||