Re: Throw some low-level C scutwork at me

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andy Lester <andy(at)petdance(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Throw some low-level C scutwork at me
Date: 2009-05-01 18:01:41
Message-ID: 49800DD5-8F79-4F2E-9335-B01119027D46@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andy Lester 2009-05-01 18:28:40 Re: Throw some low-level C scutwork at me
Previous Message David Fetter 2009-05-01 17:54:56 Re: Throw some low-level C scutwork at me