[Chicago-talk] Chicago-talk Digest, Vol 81, Issue 11

Brad Doty bdoty at eqtc.com
Mon Apr 12 07:21:36 PDT 2010


hehe, I think Steven was taking a jab at the irrational style of braces
sub foo {
	code here
}  # rational ending brace
   }  # worse yet, ala emacs

which was published in 1990s C++ text books and is enforced by emacs.
Unfortunately that caught on with younger programmers and now you need
the colored-syntax editors just to see at a glance where your stinking
blocks start and end.  I'll refrain from using the word "stupid" again
after last week's rant.  Perhaps that is a plot by emacs to force you to
use something besides vanilla vi.

bRad


-----Original Message-----
From: chicago-talk-request at pm.org
Reply-to: chicago-talk at pm.org
To: chicago-talk at pm.org
Subject: Chicago-talk Digest, Vol 81, Issue 11
Date: Sun, 11 Apr 2010 12:00:12 -0700

Send Chicago-talk mailing list submissions to
	chicago-talk at pm.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.pm.org/mailman/listinfo/chicago-talk
or, via email, send a message with subject or body 'help' to
	chicago-talk-request at pm.org

You can reach the person managing the list at
	chicago-talk-owner at pm.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Chicago-talk digest..."


Today's Topics:

   1. Re: A Perl::Critic question (Steven Lembark)
   2. Re: A Perl::Critic question (Elliot Shank)


----------------------------------------------------------------------

Message: 1
Date: Sat, 10 Apr 2010 23:10:21 -0400
From: Steven Lembark <lembark at wrkhors.com>
Subject: Re: [Chicago-talk] A Perl::Critic question
To: chicago-talk at pm.org
Message-ID: <20100410231021.3f6f92f1lembark at wrkhors.com@wrkhors.com>
Content-Type: text/plain; charset=US-ASCII

On Fri, 9 Apr 2010 16:33:22 -0500 (CDT)
Mike Fragassi <frag at ripco.com> wrote:

> 
> This is not a big deal, but is confusing me.
> 
> According to the docs, both of these should turn off Perl::Critic within 
> foo():
> 
> 1)  sub foo { ## no critic
> 2)  sub foo {
>         ## no critic
> 
> But I'm finding that only the former works.  Is there something about 
> the #2 form that I'm missing?  (This is with the most recent 
> Perl::Critic and perl 5.8.5.)

Maybe it just wants you to use intelligent braces:

    sub foo
    { ## no critic

    }




More information about the Chicago-talk mailing list