develooper Front page | perl.perl6.internals | Postings from August 2001

Re: Final draft: Conventions and Guidelines for Perl Source Code

From:
Nicholas Clark
Date:
August 12, 2001 02:03
Subject:
Re: Final draft: Conventions and Guidelines for Perl Source Code
Message ID:
20010812100321.B68694@plum.flirble.org
On Mon, Aug 06, 2001 at 01:21:29PM +0100, Dave Mitchell wrote:
> =item *
> 
> Uncuddled elses: ie avoid  C<} else {>

Does this mean avoid:

if (...) {
  ...
} else {
  ...
}

and instead use:

if (...) {
  ...
}
else
{
  ...
}

If my interpretation of what it means is correct, why is the latter style
preferred over the former style?

Nicholas Clark



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