[ruby-talk:02461] Re: Precedence question

From: Dave Thomas <Dave@...>
Date: 2000-04-12 06:27:41 UTC
List: ruby-talk #2461
matz@netlab.co.jp (Yukihiro Matsumoto) writes:

> Because method call without parentheses is considered as statement,
> which can not be part of expression unless grouped within parentheses.

Ah!

While we're talking about method calls, should I document the syntax

  a.sample(1, 2, 'a' => 3, 'b' => 4)


Thanks


Dave

In This Thread