# Parenthesize argument(s)

**URL:** <https://www.ruby-forum.com/t/parenthesize-argument-s/112380>\
**Category:** Rails\
**Created:** [August 18, 2007, 2:29am UTC](https://www.ruby-forum.com/t/parenthesize-argument-s/112380 "2007-08-18T02:29:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggie5](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Post date:** [August 18, 2007, 2:29am UTC](https://www.ruby-forum.com/t/parenthesize-argument-s/112380/1 "2007-08-18T02:29:03Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![eggie5](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Post date:** [August 18, 2007, 3:39am UTC](https://www.ruby-forum.com/t/parenthesize-argument-s/112380/2 "2007-08-18T03:39:09Z")

</div>

On 8/17/07, eggie5 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)
