From: "Florian Groß" Date: 2006-05-19T22:56:55+09:00 Subject: Re: How to "go to" in a RUBY script . . . Leslie Viljoen wrote: > hehe. I recently noticed that C# still has a goto, although it seems > that you can't have a label right at the end of a function since the > label must precede an actual statement. The one cool thing about C#'s goto that can't be easily done in Ruby is goto case 5 in switch-case IMHO. > In Ruby I sometimes do similar things with Exceptions, since an > Exception a rather glorified goto-with-parameters. Please don't abuse exceptions for this. It's exactly what catch() and throw() are there for. -- http://flgr.0x42.net/