[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Error handling and reporting
From: |
Stephane Magnenat |
Subject: |
Re: [glob2-devel] Error handling and reporting |
Date: |
Tue, 4 Oct 2005 13:48:46 +0200 |
User-agent: |
KMail/1.8.1 |
> Does anyone have any other suggestions about design goals? I've been
> thinking over implementations for days and haven't found anything I like
> yet. Does anyone know of a project that's done this well, which we can
> borrow ideas from?
Yes, Stroustrup (C++'s creator) himself has similar critics towards assert in
one of the last chapters of his book
(http://www.research.att.com/~bs/3rd.html) about C++. He suggests a mechanism
based on template that throw exceptions. Even if his proposal does not adress
all your points, I think that it is nevertheless a good reading.
If you don't have access to this book, I could make you a summary (of the
templatised assert, not of the book ;-)). But this book is very usefull when
coding with C++ anyway. With it, you'll know why things are how they are,
it's a bit like having God telling you the ultimate reasons behind the whole
strange reality! :-)
Steph