On Thu, May 24, 2012 at 4:50 PM, botp <[email protected]> wrote: > thank you all, matt/llelan/robert.
You're welcome! > r=foo and return r > > is good, but i think i'll stick w the older if r=foo style...(in the meantime > :) I wouldn't do that, there is a certain risk that it looks like a typing error (i.e. someone assumes you meant "if r==foo..."). If I would want to use "if" then I'd do r = foo return r if r But I think the idiom with "and" is superior. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
