develooper Front page | perl.perl5.porters | Postings from April 2010

Re: RFC: Perl manual pages -- update to follow the perlstyle.podguidelines

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
April 4, 2010 06:41
Subject:
Re: RFC: Perl manual pages -- update to follow the perlstyle.podguidelines
Message ID:
20100404133941.GA27411@klangraum.plasmasturm.org
* Tom Christiansen <tchrist@perl.com> [2010-04-04 14:50]:
> > Similarly in conditionals to make the groups stand out:
>
> >    if ( defined $flag   or   $a == 100   or   ord $char == ... )
>
> >compared to:
>
> >    if ((defined $flag) || ($a == 100) || (ord($char == ...)))
>
> You don't need all those parens. Look at how && and || work.

Wasn’t the point to be consistent so as to have less to remember?
Without looking up a thing, he knows the `or` variant will work.
Different people memorise different things most easily. To what
purpose should he contort himself into writing it to your style
if his own suits him just fine?

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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