[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Parentheses

Zach Dennis

10/15/2003 4:21:00 PM


When you omit parenthesis's doesn't that degrade readability of the code?
I'm just curious
what others have to say since I've seen a few folks say they like to omit
them.

-Zach


3 Answers

Aria Stewart

10/15/2003 4:24:00 PM

0

On Wed, 2003-10-15 at 10:21, Zach Dennis wrote:
> When you omit parenthesis's doesn't that degrade readability of the code?
> I'm just curious
> what others have to say since I've seen a few folks say they like to omit
> them.

I'm definately in favor of omitting: I parse like natural language, not
like a machine.

Ari

Nikolai Weibull

10/15/2003 4:38:00 PM

0

* Aredridel <aredridel@nbtsc.org> [Oct, 15 2003 18:30]:
> > When you omit parenthesis's doesn't that degrade readability of the code?
> > I'm just curious
> > what others have to say since I've seen a few folks say they like to omit
> > them.
>
> I'm definately in favor of omitting: I parse like natural language, not
> like a machine.
yeah, i feel the same way often.
nikolai



--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

Bob Gustafson

10/15/2003 5:42:00 PM

0

I prefer the parentheses.

Parens are an 'ambiguity reducing notation' - without the parens, you have
to ask (from time to time) - "What is the precedence of these operators in
this language".

Less ambiguity means clearer (human) code.

BobG


Nikolai Weibull wrote:
>* Aredridel <aredridel@nbtsc.org> [Oct, 15 2003 18:30]:
>> > When you omit parenthesis's doesn't that degrade readability of the code?
>> > I'm just curious
>> > what others have to say since I've seen a few folks say they like to omit
>> > them.
>>
>> I'm definately in favor of omitting: I parse like natural language, not
>> like a machine.
>yeah, i feel the same way often.
> nikolai