-
-
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
Backport #2772 add foldRightDefer
to Foldable
#3338
Backport #2772 add foldRightDefer
to Foldable
#3338
Conversation
I see other laws added without care for BC, did we add this constraint recently? It's gonna be tricky to follow through with this. |
We've always guaranteed (and checked) bincompat within 2.x for laws on mainline, and I think we should on the 2.11 branch as well (note that this kind of addition only breaks bincompat on 2.11). My vote would be just not to include the consistency law on this branch, possibly adding a comment to the method along the lines of "Implementers are responsible for ensuring they maintain consistency with |
Codecov Report
@@ Coverage Diff @@
## scala_2.11 #3338 +/- ##
==============================================
- Coverage 93.46% 93.44% -0.03%
==============================================
Files 385 385
Lines 7162 7166 +4
Branches 197 186 -11
==============================================
+ Hits 6694 6696 +2
- Misses 468 470 +2
Continue to review full report at Codecov.
|
@travisbrown Think I'm a little confused, I see this added in May yet no BC problem. yes, adding |
@gagandeepkalra See @kailuowang's comment on #2817:
And mine above:
That addition was first included in 2.0.0, so while it was a breaking change since 1.x on Scala 2.11, we'd decided that that was okay for cats-laws (we only guaranteed 100% bincompat across 1.x and 2.x for cats-core, etc.). |
I see, thank you. Apologies for not checking the PR first 😔 |
No worries, glad that helped! |
foldRightDefer
to FoldablefoldRightDefer
to Foldable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
addresses #3143