From: Ted Zlatanov Date: Wed, 06 Feb 2013 18:27:33 GMT Subject: Re: CodingGuidelines Perl amendment Message-ID: <87mwvhguwa.fsf@lifelogs.com> In-Reply-To: <7vehgtcnpm.fsf@alter.siamese.dyndns.org> On Wed, 06 Feb 2013 10:16:21 -0800 Junio C Hamano wrote: JCH> I'd suggest to just drop that "try to write without braces" entirely. OK, I'll do it on the reroll, or you can just make the change directly. I agree it was not going anywhere :) Ted diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index 951d74c..857f4e2 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -187,10 +187,6 @@ For Perl 5 programs: - use strict and use warnings are strongly preferred. - - As in C (see above), we avoid using braces unnecessarily (but Perl forces - braces around if/unless/else/foreach blocks, so this is not always possible). - At least make sure braces do not sit on their own line, like with C. - - Don't abuse statement modifiers--they are discouraged. But in general: ... do something ...