Re: Throw some low-level C scutwork at me - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Throw some low-level C scutwork at me
Date
Msg-id 49800DD5-8F79-4F2E-9335-B01119027D46@kineticode.com
Whole thread Raw
In response to Re: Throw some low-level C scutwork at me  (David Fetter <david@fetter.org>)
List pgsql-hackers
On May 1, 2009, at 10:54 AM, David Fetter wrote:

> foreach my $element (@array) {
>    # clear, short, idiomatic code here
> }
>
> instead of Rube Goldberg constructs like this:
>
> my $i;
> for ($i=0; $i <= $#array; ++$i)
> {
>    # kludges up down and sideways here
> }
>
> is a good idea because it makes it easier for Perl programmers to
> maintain.  It's also more efficient on the machine, for what that's
> worth.

We were only talking about indentation, David, not the use of idioms.

Best,

David


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Throw some low-level C scutwork at me
Next
From: Andy Lester
Date:
Subject: Re: Throw some low-level C scutwork at me