Re: Throw some low-level C scutwork at me

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Throw some low-level C scutwork at me
Дата
Msg-id 49800DD5-8F79-4F2E-9335-B01119027D46@kineticode.com
обсуждение исходный текст
Ответ на Re: Throw some low-level C scutwork at me  (David Fetter <david@fetter.org>)
Список 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 по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Throw some low-level C scutwork at me
Следующее
От: Andy Lester
Дата:
Сообщение: Re: Throw some low-level C scutwork at me