develooper Front page | perl.perl6.language | Postings from December 2004

Re: Arglist I/O [Was: Angle quotes and pointy brackets]

Thread Previous | Thread Next
From:
Alexey Trofimenko
Date:
December 4, 2004 12:08
Subject:
Re: Arglist I/O [Was: Angle quotes and pointy brackets]
Message ID:
opsih18ogosspxk8@s
On Sat, 04 Dec 2004 11:03:03 -0600, Rod Adams <rod@rodadams.net> wrote:

> Okay, this rant is more about the \s<\s than \s=\s. To me, it is easier  
> to understand the grouping of line 1 than line 2 below:
>
> if( $a<$b && $c<$d ) {...}
> if( $a < $b && $c < $d ) {...}
>
> In line2, my mind has to stop and ask: is that "($a < $b) && ($c < $d)",  
> or "$a < ($b && $c) < $d". It quickly comes to the right answer, but the  
> question never comes up in the first line. If I wanted to use more  
> parens for clarity, I'd use LISP.
>

I've got used to write it as
    if( $a < $b and $c < $d) {...}
already. if it could help.. :)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About