-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CartesianBuilder's .map is slightly irritating #1260
Comments
I'm currently experimenting with syntax to smooth the transition from scalaz to cats. (Somehow I missed CartesianBuilder thus far!). I've wondered about spinning this off as a library, with everything deprecated, so that |
Just want to link PR #1112 here since it proposes to rid of the |
Since the applicative builders work with applicative functors as well as with applicative contravariant and invariant functors, I don’t think it is a good idea to make |
@julienrf ah ok, I didn't know there were other operations. That makes sense. Ok, I'm convinced. |
So, when we copied scalaz's
ApplicativeBuilder
syntax(a |@| b |@| ...)(f)
we changed the final.apply
to.map
which is an innocent but perhaps unhelpful change. My particular issue is that I'm trying to maintain code that needs to compile with both cats and scalaz; most code works fine just by changing/renaming imports, but this syntactic difference requires additional machinery.Right now @rossabaker and I are probably the only people hitting these things head-on right now, but I imagine there will be more people porting code at some point and it would be nice to not make things harder unless there's a good reason.
So … might we consider allowing both
.apply
and.map
here?The text was updated successfully, but these errors were encountered: