News for hackers. Stuff that matters.
Re:Ante: A low-level functional language by layer8 on Friday June 17, 2022 @10:19AM (#31778601)
The function represents the operation or computation you want to perform. The arguments represent inputs or parameters for that operation or computation.

Of course, theoretically you could also view the function as a parameter of the computation and/or the arguments as specifying an operation (in particular if those are also functions), but for most concrete function invocation that's not generally the mental model. E.g. in "sin(x)" one usually has in mind to compute the sine, and x is the input for that computation. One doesn't think "I want to do x, and `sin` is the input of that operation I want to do". One also doesn't think "I want to do computation, and `sin` and `x` are inputs for that computation". It's why you may have mentally a sine graph ranging over different x values, but you don't imagine an x graph ranging over different functions you could apply to x.

Re:Ante: A low-level functional language by agumonkey on Friday June 17, 2022 @10:49AM (#31779026)
But even in high school topics start to talk about functional equations (calculus, e/ln). I'm not sure the <function> vs <value> doesn't come from the mainstream imperative paradigms and only that.
Re:Ante: A low-level functional language by tikhonj on Friday June 17, 2022 @12:01PM (#31780189)
The distinction isn't between functions and values in general, it's between the function being called and the arguments passed to the function being called. The difference isn't in the things themselves, it's in the role that they play in the specific expression we're reading.
Re:Ante: A low-level functional language by agumonkey on Friday June 17, 2022 @02:21PM (#31782231)
This argument is rather strange. Maybe for people who never interacted with different -fix notations ? Human language binds concepts with arguments in all kinds of direction .. I'd be surprised this is enough to annoy people.
Re:Ante: A low-level functional language by layer8 on Friday June 17, 2022 @03:29PM (#31783123)
Natural language isn’t precise and a lot is inferred from context. Exact order does often not really matter. In formal languages, however, you want to be as unambiguous and exact as possible, so it makes sense to use syntax and symbols to emphasize when elements differ in kind.

Incidentally, that’s also why we use syntax highlighting. One could, of course, use syntax highlighting instead of symbols to indicate the difference between function and arguments (between operation and operands), but that would interfere with the use of syntax highlighting for token categories (e.g. for literals of different types).

Re:Ante: A low-level functional language by agumonkey on Friday June 17, 2022 @04:00PM (#31783497)
We also alternate between various positions in programming languages, so it's not a matter of formal precision.
Re:Ante: A low-level functional language by layer8 on Friday June 17, 2022 @04:49PM (#31784171)
Not sure what you mean by “alternate between various positions”.
Re:Ante: A low-level functional language by agumonkey on Friday June 17, 2022 @09:14PM (#31786461)
Prefix for function, infix in expressions, and postfix if you use forth