From: Florian Gilcher Date: 2011-09-13T05:54:09+09:00 Subject: Re: Any downsides to writing paranthesises? On Sep 12, 2011, at 10:16 PM, Vladimir Van Bauenhoffer wrote: > Im a newbie programmer who is trying to learn Ruby after having just > learned the basics of Python. Being used to Python I very much like > having paranthesises when I code because for me it is easier to read and > I also think it looks more structured. > > I know that Ruby encourages you to not use paranthesises in most cases, > but my question is: are there any downsides to using paranthesises? I > dont know much about programming and I would very much like to know if > there is a problem with me using paranthesises pretty much everywhere in > Ruby. I wouldn't say Ruby encourages you to. It leaves it up to you, as long as your code is unambiguous to the interpreter. For example, one of the most prominent style guides by cneukirchen[1] encourages the use of parantheses in quite a few contexts (e.g. when calling methods to reuse their return value, in argument and some parameter lists). So code with parenthesis is perfectly fine and widely used. You might have sparked another discussion about this now, though :). Regards, Florian [1]: https://github.com/chneukirchen/styleguide/blob/master/RUBY-STYLE