News for hackers. Stuff that matters.
Re:Ante: A low-level functional language by the_af on Friday June 17, 2022 @09:53AM (#31778175)
I don't understand your objection, what output would you like to see instead?
Re:Ante: A low-level functional language by lgessler on Friday June 17, 2022 @10:20AM (#31778603)
GP's point is that while yes, we know since `f` has arity 1 there's no ambiguity, in general you might not have the arity of any given function fresh in your head, and therefore can't tell (in Ruby) just from looking at `f f 1` whether it means a single invocation of an arity 2 function, or two invocations of an arity 1 function
Re:Ante: A low-level functional language by the_af on Friday June 17, 2022 @12:41PM (#31780827)
Ah! Right. It helps to have all functions be of arity 1 to disambiguate, yes.