-
Notifications
You must be signed in to change notification settings - Fork 376
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
Changing ap arguments order for consistency with map and chain, and for better types support #144
Comments
It's been mentioned before, I'll dig out the references, but I'm in favour as well. |
Ah, right. #50 is specifically about this problem. I remember it was mentioned before, but thought that it was mentioned briefly in an unrelated issue. I guess I created a duplicate then, sorry. I'll close this one. |
Let's do it, open a PR. |
OK, I'll open one tomorrow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current order of arguments (if we count
this
as an argument) inap
is problematic. I see two problems about it.It's inconsistent with
map
andchain
In
map
andchain
value goes first and function goes second, inap
the other way around.It's impossible to type with Flow and probably other type systems
... or at least hard, and I didn't figured out how to do it.
I understand this is a braking change that will probably break a lot of code. But I just want to open this discussion, and hear what others think. Maybe this is a pain point for many people, and it would be reasonable to make the change.
The text was updated successfully, but these errors were encountered: