-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Implement translation for break
node
#221
Conversation
|
||
# with arguments | ||
while true | ||
break foo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know that break took arguments 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've seen lots of reasons to use next
with values (e.g. "early return" from a block passed to Promise#then
, but not actually return
out of the surrounding def
method), but never break, haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚂
|
||
# with arguments | ||
while true | ||
break foo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've seen lots of reasons to use next
with values (e.g. "early return" from a block passed to Promise#then
, but not actually return
out of the surrounding def
method), but never break, haha
Closes #53
Test plan
See included automated tests.