Skip to content

Yield break with return value #5033

Answered by svick
jagorath asked this question in Language Ideas
Aug 12, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Why would it be worthwhile to add special syntax for this particular pattern? It isn't the goal of the language to make every program as short as possible.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@jagorath
Comment options

@CyrusNajmabadi
Comment options

@jagorath
Comment options

Answer selected by jagorath
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #5032 on August 12, 2021 23:43.