From: Stefan Rusterholz Date: 2007-07-21T03:21:53+09:00 Subject: Re: RCR? Added syntax for chains that possibly return nil Nobuyoshi Nakada wrote: > In short, same as your proposal. > (tmp = h[:a] and tmp[:b]) > can be without the temproray variable: > h[:a]&?[:b] > > and > h.a and h.a.b > can be: > h.a&?b > > And a followup was to make nil? to take a block which is > called when the receiver isn't nil. Ah, interesting, so I'm not the first to propose this :) What was the reason it was rejected? Regards Stefan -- Posted via http://www.ruby-forum.com/.