Ian_C. comments on 2-Place and 1-Place Words - Less Wrong

46 Post author: Eliezer_Yudkowsky 27 June 2008 07:39AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (36)

Sort By: Old

You are viewing a single comment's thread.

Comment author: Ian_C. 27 June 2008 10:23:32AM 2 points [-]

Another way a 2-argument function can become 1-argument is to become an OO method, e.g. global function "void likes(Person, Person)" becomes "class Person { void likes(otherPerson); }"

i.e. the first argument becomes the receiving object.

And this is what people are forgetting - that actions (such as attraction) are not disembodied things, rather there is always a thing that acts. OO makes it impossible to forget this.

Comment author: FeepingCreature 12 February 2012 07:18:51PM 2 points [-]

Of course, underneath it's still a 2-argument function - it just takes a hidden parameter. And if your language supports creating delegates/closures; that is, function-context pairs, that's just the equivalent of partial application as seen above.