From: Joel VanderWerf Date: 2009-02-19T04:45:02+09:00 Subject: [ruby-core:22232] Re: [Feature #1122] request for: Object#try Roger Pack wrote: >> Then how it is different from >> foo.bar if foo.respond_to?(:bar) >> >> ? > > You don't have to write foo and bar twice :) > > I'm with you in thinking that adding another syntax > foo.?bar > seems a little much when a new method will do. > -=r Agree on both points. But what does the new method return? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407