5 ms·
But it’s not `a b c`. Rather it’s something like `verb noun noun`. Which is much less ambiguous. In a language with currying semantics [(((a(b))(c))(d)] the on
by deno 10y ago
But it’s not `a b c`. Rather it’s something like `verb noun noun`. Which is much less ambiguous.
In a language with currying semantics [(((a(b))(c))(d)] the only logical explicit syntax sugar would be LISP-like, so (v n n), (v (v2 n)). That’s imo way worse — you end up with lots of useless junk)))))))) in anything non-trivial.
- stuartaxelowen 10y agoWhat about `verb noun verb noun`? Is the second verb a parameter or is it being invoked on the noun?
- thedufer 10y agoIt's a parameter. The rule isn't complicated - functions are left-associative. That's all you have to remember.