-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adding an operator like Haskell's '$' #1845
Comments
This would be crazy useful for exactly the use case described here, I run into this often! 😁 |
Also for |
Also for |
I really want this operator. And in particular, the right-hand side should support functions, because that's really what I want this for. I want to be able to take an existing
and change it to
|
Keywords to improve search discoverability of this issue: infix application operator |
On a similar note I'd also like the composition operator ( |
I marked this as stale due to inactivity. → More info |
We still want this! |
I marked this as stale due to inactivity. → More info |
I still want this very much! |
I marked this as stale due to inactivity. → More info |
I think apply foo;
apply bar;
baz
# Equivalent to
foo (bar baz) Advantages compared to
Disadvantages:
|
FYI there is now an RFC that proposes something similar, people in here might have opinions about |
This is a change with potential impact on the whole ecosystem (similar to NixOS/rfcs#110 or NixOS/rfcs#148), so it wouldn't be right for it to be decided here. Anyone willing for this to happen, please open an RFC about it to bring the discussion to a more visible place. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-06-22-nix-team-meeting-minutes-65/29643/1 |
The title says it all, I'm thinking it would be useful for eg.
What do you think about it? I guess it's too late for the feature freeze, but $ being already reserved for ${} I guess it wouldn't be a breaking change anyway.
The text was updated successfully, but these errors were encountered: