Re: try/catch macros for Postgres backend

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera Munoz
Тема
Re: try/catch macros for Postgres backend
Дата
Msg-id
20040729041012.GA4657@dcc.uchile.cl
Ответ на
Список
Дерево обсуждения
Re: try/catch macros for Postgres backend Christopher Browne <cbbrowne@acm.org>
On Wed, Jul 28, 2004 at 08:19:17PM -0400, Tom Lane wrote:

Very cool and interesting idea.

> Does anyone have a problem with this macro syntax?  The try/catch names
> are stolen from Java, so I'm figuring they won't terribly surprise any
> modern programmer, but I'm open to different names if anyone has a
> better idea.

The only comment I have so far is that Java and Python appear to have
settled on try/catch/finally blocks.  Maybe we need three blocks too,
for handling more complex scenarios.

(The "finally" block, AFAIU, is executed whether an exception was raised
or not, so it serves as cleanup for try and catch blocks.  Somebody more
knowledgeable in this OO matters may enlighten us better?)

-- 
Alvaro Herrera ()
"No es bueno caminar con un hombre muerto"

В списке pgsql-hackers по дате отправления
От: Gavin Sherry
Дата:
От: Coloring Graph
Дата:
Сообщение: 7.5 devel initdb failure
FAQ