Hacker News new | past | comments | ask | show | jobs | submit login

You can use fluent interfaces to get past two args:

    myObject.doThing(a).toAthing(b)
Though that requires a good amount of boilerplate on the part of the library author.



Mary.give(apple).to(John)

Mary.give(John, apple)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: