-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right-to-left argument application? #1
Comments
Transcript from our Skype conversation so I don't forget what we said:
|
Again, taking pointers from Elixir, I'll likely use the foo >> bar(&, 123); // bar(foo, 123);
foo >> bar(123, &); // bar(123, foo);
// Without reference, pushes it onto the end
foo >> bar(123); // bar(123, foo); I think if it's implemented like this it makes sense to make it possible to add the reference to the middle of the partial. foo >> bar(1, &, 2, 3); // bar(1, foo, 2, 3);
foo >> bar(1, 2, &, 3); // bar(1, 2, foo, 3); |
This is probably a terrible idea, but how do you feel about using the
<<
operator to support applying arguments from right-to-left? People would need to parenthesise if they were mixing both operators in one statement (or to keep it simple you could prohibit mixed usage entirely).In other words:
The text was updated successfully, but these errors were encountered: