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

2001-08-13 Thread Dave Mitchell
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

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

2001-08-13 Thread Hong Zhang
I believe the advantage of if (...) { ... } else { ... } is to write very dense code, especially when the block itself is single line. This style may not be readable to some people. This style is not very consistent, if (...) { ... } else { ... } I believe it would better