I think this is the first time I’ve ever seen a while loop in production Ruby: https://github.com/defunkt/resque/blob/master/lib/resque/failure.rb#L86 … https://github.com/defunkt/resque/blob/master/lib/resque/failure.rb#L74 …
-
-
Replying to @steveklabnik
@steveklabnik while & loop can be very useful at times. I did use them seldomly in code I wrote.1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik@merbist While loops like this are very useful for mutation during iteration, which is undefined with#each1 reply 0 retweets 0 likes
Replying to @evanphx
@evanphx @steveklabnik @merbist while loops are great if you need to loop indefinitely as opposed to just iterate ;)
12:15 PM - 23 Sep 2012
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.