We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When breaking an iterator, two statements inside a code block are required, e.g.
if (someCondition) { yield return -1; yield break; }
With a combined return/break statement for example called "yieldlast" (or something less awkward), these four lines could be reduced to one -
if (someCondition) yieldlast -1;
Or to avoid new reserved words, yield break could have an optional parameter:
if (someCondition) yield break -1;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When breaking an iterator, two statements inside a code block are required, e.g.
With a combined return/break statement for example called "yieldlast" (or something less awkward), these four lines could be reduced to one -
Or to avoid new reserved words, yield break could have an optional parameter:
The text was updated successfully, but these errors were encountered: