From: Trans Date: 2007-07-20T07:22:45+09:00 Subject: Re: RCR? Added syntax for chains that possibly return nil On Jul 19, 6:31 am, Stefan Rusterholz wrote: > One type of construct in ruby that somewhat annoys me and IMHO reduces > readability is working around cases where an intermediate method might > return nil. Those cases are e.g. > > while (line = gets && line.chomp) > foo = (bar && bar.baz && bar.baz.quuz) || default # bar might be nil, so > might bar.baz and bar.baz.quuz what about foo = bar.baz.quuz rescue default T.