Cannot yield a value in the body of a try block with a catch clause #6819
Unanswered
alrz
asked this question in
Language Ideas
Replies: 1 comment
-
Except for the suggestion for new syntax, this looks like a duplicate of #765, only that now it also applies to async iterator methods. |
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.
-
Consider:
I worked around this issue by manually iterating over the stream.
This is possible as long as there's nothing else inside the
try
block other than aforeach
, I think.Is it worth it to have a special syntax for this?
If done using the same transformation, continue and break should be valid inside the catch block.
Beta Was this translation helpful? Give feedback.
All reactions