> > each "when" branch invokes what might be a completely different === > method, so there's no way to convert that to a simple jump. >
https://www.youtube.com/watch?v=BQ4yd2W50No You can convert a case statement to a simple jump in some cases, if you don't mind writing type annotations: http://infraruby.com/blog/how-to-compile-ruby-case-statements Thanks, Nicholas -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.
