Skip to content

Add 'Begin Until' to the loop battle#143

Open
styd wants to merge 1 commit intofastruby:mainfrom
styd:begin-until
Open

Add 'Begin Until' to the loop battle#143
styd wants to merge 1 commit intofastruby:mainfrom
styd:begin-until

Conversation

@styd
Copy link
Contributor

@styd styd commented Feb 3, 2018

Based on my experience, begin...end until is always faster than while loop.
I've also tried the until loop and it's about as fast as the begin...end until, but most of the time begin...end until run slightly faster on my machine.

Copy link
Contributor

@kbrock kbrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice introduction of a do until type loop that I often want in ruby but assume is only in C

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants