On Mon, Mar 4, 2013 at 10:15 PM, Peter Hickman <[email protected]> wrote: > Ruby supports the if, else statements so it is fine to use it. It is just a > personal preference of mine. There is nothing "better" about using the case > statement (well none that I am aware of).
Maybe that "case" conveys the notion of several equivalent choices while "if else..." is for more general control flow. In this case I'd prefer "case" as well. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- [email protected] | https://groups.google.com/d/forum/ruby-talk-google?hl=en --- You received this message because you are subscribed to the Google Groups "ruby-talk-google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
