[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: include? needs parentheses?
From: matz () ruby-lang ! org (Yukihiro Matsumoto)
Date: 2004-04-14 17:34:49
Message-ID: 1081964086.861017.16618.nullmailer () picachu ! netlab ! jp
[Download RAW message or body]
Hi,
In message "Re: include? needs parentheses?"
on 04/04/14, nobu.nokada@softhome.net <nobu.nokada@softhome.net> writes:
|> 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.
matz.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic