Re: proposal: plpgsql - Assert statement
| От | Mike Blackwell |
|---|---|
| Тема | Re: proposal: plpgsql - Assert statement |
| Дата | |
| Msg-id | CANPAkgur8XEfdCPtv7GZ30oktYELKOp3z34A5cQGeJJ3sZhxZg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: proposal: plpgsql - Assert statement (Andrew Dunstan <andrew@dunslane.net>) |
| Список | pgsql-hackers |
On 18 November 2014 21:19, Petr Jelinek <petr@2ndquadrant.com> wrote:Personally, I see this as natural extension of the conditional block control
which we already have for loops with CONTINUE WHEN and EXIT WHEN. This
basically extends it to any block and it seems quite natural to have it for
me...
This seems to me like a step in the direction of APL, where every statement is a conditional.
Perl has the option of putting the conditional on the end of a statement as suggested here for ASSERT. My experience has been that while it may "look prettier" to some, the conditional is overlooked in reviews, etc., more often than one would expect, giving a net loss in the overall risk/productivity analysis.
As a code maintainer, I would be opposed to adding something like this for no other reason than perceived aesthetics.
Your mileage may, of course, vary.
В списке pgsql-hackers по дате отправления: