tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libcodecs(3), take 4

On Sat, Oct 02, 2010 at 08:13:25AM +0200, Alistair Crooks wrote:
> Hi Uebayashi-san,
> Thanks for your feedback.
> On Sat, Oct 02, 2010 at 02:42:02PM +0900, Masao Uebayashi wrote:
> > Usually libraries don't print error messages to stderr, nor exit.
> That's true for some libraries, but not for all of them.  At the same
> time, printing error messages is far superior to the practise of
> returning enumerated error values (like regexp libraries), or stacking
> them up and vomiting them up at a later stage.

I disagree. Having a clear return value that tells the caller that an
error happened (or a warning) and providing the caller the mean to print
it or not is superior.


Home | Main Index | Thread Index | Old Index