Better exception inference for @safe and @impure_safe#1877
Conversation
|
Honestly, I do not get the idea of having ResultE when there is a Result[ValueType,ErrorType] with ErrorType with second arg. Just for typing a block of code when we are sure there is an error I guess. But if code is not deep just Result is okey? |
|
Is the goal of this MR to proxy specific Exception rather than just Exception? |
Back in the day we didn't have typevar defaults, so I had to add one more type alias for the common case. Right now we can deprecate |
|
and update doc like here https://returns.readthedocs.io/en/latest/pages/result.html#aliases |
|
@RomanMIzulin yes, sure, go ahead! |
I got this idea when reviewing your PR :)
CC @RomanMIzulin
Refs #1870