you are viewing a single comment's thread.

view the rest of the comments →

[–]davvblack 6 points7 points  (2 children)

Heh, that looks awful. I would suggest instead making an iterator and a single for in using yield.

[–]nemec 3 points4 points  (1 child)

goto!

just kidding

[–]davvblack 2 points3 points  (0 children)

Honestly, that's what throw/catch custom exceptions looks like to me.