On Wed, Feb 18, 2009 at 6:29 PM, Roger Pack <rogerdpack / gmail.com> wrote:
>> 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.
>
> IMHO there should be two methods, to avoid confusion, and they should
> be explicitly named, again to avoid confusion.
> foo.if_not_nil.bar
> and
> foo.if_respond_to.bar
>
> Thoughts?

Then how it is different from
foo.bar if foo.respond_to?(:bar)

?
-- 
Pozdrawiam

Radosw Bu„Šat
http://radarek.jogger.pl - m blog