Implicate cast is not working or it is by design #548
Closed
dominikjeske
started this conversation in
General
Replies: 2 comments
-
Hi, you can use // Wrong
var other = result.Bind(x => "");
// Correct
var other = result.Map(x => ""); and // Wrong
var compensated = fail.Compensate(x => new Err2 { Message = x.Message });
// Correct
var compensated = fail.MapError(x => new Err2 { Message = x.Message }); |
Beta Was this translation helpful? Give feedback.
0 replies
-
I can swear I tried Map and it not work but you are right :) And of course MapError also works. I have to work more with this lib to know it better. I think more docs/examples on how all those functions differ between each other would be helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder if some use cases below are errors or maybe it should be like that. Maybe I'm using it wrong but I find it hard to read when I had to cast each time to Result type or give full generic parameters.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions