On Wed, 01 Dec 2004 10:29:17 +0100, Thomas Hallgren
<[email protected]> wrote:
> Richard Huxton wrote:
>
> > But is the problem not that forgetting to use SAVEPOINT can get us in
> > trouble with clearing up after an exception?
>
> I fail to see how that's different from forgetting to use pgtry instead
> of try.
I see that as a non-starter. At least in the case of perl, we can
actually hide pgeval behind the standard eval. If pgeval were
equivelant to, say, 'savepoint("foo"); CORE::eval @_;' then the onus
is still on the developer to use 'eval', but that is a familiar
concept to defensive developers.
--
Mike Rylander
[email protected]
GPLS -- PINES Development
Database Developer
http://open-ils.org