From: Ondrej Bilka Date: 2009-02-16T19:17:33+09:00 Subject: [ruby-core:22180] Re: [Feature #1122] request for: Object#try On Mon, Feb 16, 2009 at 03:58:22AM +0100, Daniel Luz wrote: > 2009/2/15 Yehuda Katz : > > Count me in as a +1 on foo.?bar(baz). I'm on the fence about whether ?bar > > should call the Ruby method respond_to? or just check the method table > > internally (might be a nice optimization). Either way is fine with me, > > though. > > IMHO, foo.?bar should behave as "call-except-if-nil". Not only it > would be more consistent with other languages (like Io and Groovy), > but I think it would also be more useful/less dangerous. > > -- > Daniel IMHO foo.?bar should be same as (foo.bar rescue NoMethodError) to handle method_missing. -- the xy axis in the trackball is coordinated with the summer solstice