Created
June 15, 2015 02:42
-
-
Save dangerousbeans/489f955df9199901a5c6 to your computer and use it in GitHub Desktop.
WorstLoop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INDEX = 0 | |
begin | |
while true do | |
INDEX = INDEX + 1 | |
puts "DERP" | |
raise Exception if INDEX > 10 | |
end | |
catch Exception => e | |
raise "ALL DONE" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment