Re: try/catch macros for Postgres backend

Поиск
Список
Период
Сортировка
От Alvaro Herrera Munoz
Тема Re: try/catch macros for Postgres backend
Дата
Msg-id 20040729041012.GA4657@dcc.uchile.cl
обсуждение исходный текст
Ответ на try/catch macros for Postgres backend  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: try/catch macros for Postgres backend
Список pgsql-hackers
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 (<alvherre[@]dcc.uchile.cl>)
"No es bueno caminar con un hombre muerto"


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: try/catch macros for Postgres backend
Следующее
От: Coloring Graph
Дата:
Сообщение: 7.5 devel initdb failure