Boost logo

Boost :

From: Luis Pedro Coelho (luis.coelho_at_[hidden])
Date: 2001-03-16 20:07:24


Em Sexta, 16 de Março de 2001 06:13, escreveste:
>
> It is not an _app_ what is written here - it is library. My opinion is
> that: even if library user (programmer) violates contract calling library
> functions, the library absolutely must not to lay the application down. It
> is just what exceptions are for.

The problem I see in that line of reasoning is that if you throw an exception
when you get a bad use of the library, you have just relaxed your
preconditions.
Not that that is a bad thing, just keep in mind that going the oposite way in
later releases is much more difficult, since people will write code that
relies on that exception being thrown.

Luis Pedro Coelho


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk