From: Vladimir Van Bauenhoffer Date: 2011-09-13T05:50:35+09:00 Subject: Re: Any downsides to writing paranthesises? .serialhex .. wrote in post #1021524: > while there isn't anything implicitly *wrong* with usingparens all > over the place, IMO (and in most ruby-ists opinion probably) an > overabundance of parens looks ugly. case in point: > > ``` > "foo".to_a().length() > # vs > "foo".to_a.length > ``` > > the first, with the un-needed parens is kind of ugly, the second, not > so much. (in fact, the fact that i *must* include the parens with > functions that take no arguments infuriates me to no end! it's like > ending every line with a freaking semicolon!!! OOHHHH!!!! STAB > PEOPLE!!!!!!) > > but in the end, it's your code, do what you will > hex I agree that having to write empty paranthesises is not all that great and that is not something I would do in Ruby. I mean that I like to write them in places like: Dir.glob("*txt") array.delete_at(1) in other words, after methods and the like. -- Posted via http://www.ruby-forum.com/.