[HACKERS] SPI API and exceptions

2012-12-28 Thread Peter Eisentraut
SPI was invented before there was proper exception handling, so it communicates errors by return values. This makes programming with SPI either prone to errors of omission, or very ugly (ultimately, the standard reasons why exceptions were invented). So I was pondering whether we could introduce

Re: [HACKERS] SPI API and exceptions

2012-12-28 Thread Tom Lane
Peter Eisentraut pete...@gmx.net writes: SPI was invented before there was proper exception handling, so it communicates errors by return values. This makes programming with SPI either prone to errors of omission, or very ugly (ultimately, the standard reasons why exceptions were invented).