Add effect hadling support #3488
Unanswered
etheilred
asked this question in
Language Ideas
Replies: 2 comments
-
That, to me, looks far too much like void A()
{
var t = new User("Mark").Get();
if (t != null)
Console.WriteLine(t);
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't understand how would this feature be actually useful, but that might be just because of the example. Because in that example:
Maybe you have a more convincing explanation and example, showing why this feature would be useful? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Look at the following example:
Obviously, if Get() returns null, print will not be called. What can be done:
perform / handle idiom allows to define a common way of recovering from an error and continue execution. This is more handy than if ... else approach because you
Beta Was this translation helpful? Give feedback.
All reactions