From ruby-talk Thu Apr 15 13:26:51 2004 From: Emmanuel Touzery Date: Thu, 15 Apr 2004 13:26:51 +0000 To: ruby-talk Subject: Re: include? needs parentheses? Message-Id: <407E8E12.7060200 () wanadoo ! fr> X-MARC-Message: https://marc.info/?l=ruby-talk&m=108203564817550 Hello, nobu.nokada@softhome.net wrote: >Hi, > >At Thu, 15 Apr 2004 02:34:49 +0900, >Yukihiro Matsumoto wrote in [ruby-talk:97164]: > > >>|> I can only guess: maybe it's because the line "puts([1,2,3].include? 1,2)" >>|> would be amiguous? >>| >>|You're correct, and Gavin may be also. >> >>The basic rule was "when you use return values from method calls, use >>parentheses". So I believe I didn't make mistake for this case. But >>your expectation might be worth consideration. >> >> > >Understood. Then, the messages shouldn't be so? > > yes, that'd help the messages to be much less "try and fix" if people understand them less intuitively and more objectively. emmanuel