-
Notifications
You must be signed in to change notification settings - Fork 8
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
lens-transform should be consistent with lens-set #72
Comments
Or, does the argument order of It breaks the convention of having the lens as the first argument, but allows the lens and the new-value/transformer-function to be next to each other, and is more consistent with |
I'm not sure how to fold plurality into argument conventions, because there's several plural cases:
And probably more I haven't thought of. The singular |
Well, right now, the argument orders for the single-lens cases of If you thought it would make more sense, you could change all of them to follow that convention, but that breaks the convention of having the lens as the first argument, and also turns it into a postfix-ish feel. I'm not sure what you mean by |
I meant |
Maybe worth noting: For the plural of
I chose the second one because I thought it would be more useful, especially since it's easy to throw a |
Let's move general discussion of argument order to #73 |
change argument order of lens-transfrom, closes #72
lens-set
takes the target before the new value, whilelens-transformer
takes the target after the transformer. They should both take the target before.The text was updated successfully, but these errors were encountered: