Parenthesize argument(s)

So, I read somewhere that you don’t have to parenthesize function
arguments in ruby. So then I’m in irb and I call puts Hello.say_hello
“Alex E.” and it says, “warning: parenthesize argument(s) for future
version”.

So what’s the official word? Are non-parenthesized arguments being
deprecated in ruby?

On 8/17/07, eggie5 [email protected] wrote:

So, I read somewhere that you don’t have to parenthesize function
arguments in ruby. So then I’m in irb and I call puts Hello.say_hello
“Alex E.” and it says, “warning: parenthesize argument(s) for future
version”.

So what’s the official word? Are non-parenthesized arguments being
deprecated in ruby?

You’re calling two methods really:

puts(Hello.say_hello(“Alex E.”))

It complains if you just try:

puts Hello.say_hello “Alex E.”


Rick O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com