ReturnIf feature to reduce nesting #8509
Unanswered
ahmedameen2
asked this question in
Language Ideas
Replies: 1 comment 2 replies
-
See: #2195 The language already allows you to put such a statement onto a single line with no nesting: if (condition) return; |
Beta Was this translation helpful? Give feedback.
2 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.
-
If you added language features like ReturnIfTrue, ReturnIfFalse, ReturnIfNull the code will be more readable and nesting will be reduced.
Beta Was this translation helpful? Give feedback.
All reactions