Nicholas Clark <[EMAIL PROTECTED]> 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?

Don't ask me guv', I just work here.... :-)
Or more to the point, I just cribbed it from Porting/patching.pod.
A similar edict appears in pod/perlstyle.pod (although that refers to Perl,
not C). Personally I have no objection to cuddling, but it appears frowned
upon by the Perl community. If that community lets me know otherwise, I'll
happily change it.

I also assumed that this is allowed:

}
else {

Reply via email to