Why does Ruby issue this warning?

This line of code:

  puts HTTP.get url("collection", MARK)

results in this warning message:

  warning: parenthesize argument(s) for future version

Of course, heeding the warning and changing the code to:

  puts HTTP.get(url("collection", MARK))

eliminates the message. But does anyone know why this is happening?

Curt

I think Matz is trying to deprecate the use of multiple method calls
without parentheses, since they can cause ambiguity, e.g.:

  myfunc a b, c

Is it a(b) being passed with c to myfunc, or is a(b, c) being passed to myfunc?

Bill

···

On Fri, 29 Oct 2004 04:33:13 +0900, Curt Hibbs <curt@hibbs.com> wrote:

This line of code:

  puts HTTP.get url("collection", MARK)

results in this warning message:

  warning: parenthesize argument(s) for future version

Of course, heeding the warning and changing the code to:

  puts HTTP.get(url("collection", MARK))

eliminates the message. But does anyone know why this is happening?

Curt