-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Better java support #13
Comments
Well, unlike Fuel, I don't think Result should support Java. It aims at the beginning that it was meant to support Kotlin and solely Kotlin. |
I'm not requesting for a lot, just a way to know if it is failed (only possible in try catch of |
Fair enough. I haven't used Java for a big while for I wouldn't know exactly what really Java client wants. If you have some proposal and it doesn't alter Result too much, I am happy to accept it. |
I'm not interested in Java support but if this is meant solely to target Kotlin I'm wondering why the errors in Result require Exception as a base class as opposed to Kotlin's Throwable? |
Good point! Thanks for asking. When I designed this There is a reason for it though. If I use If you could come up with a use case which is likely better to represent as |
Since it is based on extension methods, it doesn't play well on Java.
The text was updated successfully, but these errors were encountered: