From: Matthew Kerwin Date: 2012-05-24T18:55:29+09:00 Subject: Re: looking for a ruby idiom : r=foo; return r if r On 24 May 2012 19:30, Robert Klemme wrote: > > r = foo and return r > > Hint: different precedence of "and" compared to "&&" makes this > possible without the brackets that Matthew hat to use. I knew I was missing something. Thank you Robert. --   Matthew Kerwin, B.Sc (CompSci) (Hons)   http://matthew.kerwin.net.au/   ABN: 59-013-727-651   "You'll never find a programming language that frees   you from the burden of clarifying your ideas." - xkcd