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.
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.
Is the “no space before parenthesis” warning something that might be
unnecessary in a future release?
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.
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.
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?
What would be a suitable message? Or is omitting parentheses better
than tweaking message?