Too much code - slicing

Seebs usenet-nospam at seebs.net
Thu Sep 23 00:48:57 EDT 2010


On 2010-09-23, John Bokma <john at castleamber.com> wrote:
> Seebs <usenet-nospam at seebs.net> writes:
>> I dunno.  I like the "next if /^$/" idiom,

> I don't (as a Perl programmer), I prefer:

Huh, those are actually nicer.  I didn't know that was possible; it
wouldn't have occurred to me to try to put "next" (which I think
of as a statement) into an expression.

Basically, I can live with a postfix "if" as long as everything
involved is trivial.  Past that... I'd rather see the condition
up front.

-s
-- 
Copyright 2010, all wrongs reversed.  Peter Seebach / usenet-nospam at seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.



More information about the Python-list mailing list