-
-
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
Add Traverse[Try] #1083
Add Traverse[Try] #1083
Conversation
Resolves typelevel#1081
Current coverage is 88.16%@@ master #1083 diff @@
==========================================
Files 224 224
Lines 2842 2847 +5
Methods 2785 2790 +5
Messages 0 0
Branches 52 52
==========================================
+ Hits 2505 2510 +5
Misses 337 337
Partials 0 0
|
👍 |
* A `Failure` can be statically typed as `Try[A]` for all `A`, because it | ||
* does not actually contain an `A` value (as `Success[A]` does). | ||
*/ | ||
def castFailure[A](f: Failure[_]): Try[A] = f.asInstanceOf[Try[A]] |
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.
worth it to put an @inline
here? I don't actually know how effective that is, but it seems like a candidate.
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.
Good suggestion. That seems reasonable to me.
👍 modulo the minor comment on |
Per @johnynek's request
I've updated with |
👍 |
1 similar comment
👍 |
Resolves #1081