[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: include? needs parentheses?
From: Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date: 2004-04-15 13:26:51
Message-ID: 407E8E12.7060200 () wanadoo ! fr
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic