|
Boost Users : |
Subject: Re: [Boost-users] [boost] [review][constrained_value] Review of Constrained Value Library begins today
From: Robert Kawulak (robert.kawulak_at_[hidden])
Date: 2008-12-21 09:34:09
> From: Mika Heiskanen
> For example, I cannot let my server crash
> if it cannot fulfill a particular type of request due to a
> programming error.
> Instead it should log the error and fail that particular
> request.
If one invariant fails, this means your program is not reliable anymore (also
when processing subsequent requests). Other invariants may become invalid too
and any assumptions made during writing of your program may not hold anymore.
This means that the program will most probably start behaving in an unexpected
way. I think in most cases it is preferred to crash the program than allow it to
produce invalid output and, for example, store it in a database.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net