[API Proposal]: try-catch with fallback #8687
Unanswered
PieterjanDeClippel
asked this question in
Language Ideas
Replies: 2 comments
-
This is a C# language proposal, not runtime API proposal. It should go to https://github.com/dotnet/csharplang/discussions . This is very unlikely to be considered because it's not a common or encouraged pattern. Related to #1015 and #4676 . |
Beta Was this translation helpful? Give feedback.
0 replies
-
I feel like this could be implemented at an application level rather than updating the runtime/language. There are libraries that already do this. |
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.
-
Background and motivation
Provide a shorter notation for commands with fail-cases
Prevents developers from writing the following
API Proposal
API Usage
Alternative Designs
No response
Risks
Variables from a former scope are not available in subsequent
fallback
blocksBeta Was this translation helpful? Give feedback.
All reactions