[Exceptional C++ Style] Item 13: A Pragmatic Look atExceptionSpecifications
Klitos Kyriacou
Klitos.Kyriacou at reuters.com
Tue Dec 7 07:03:46 EST 2004
Paul,
> I think it would be better if exception specifications were
> enforced at compile time. What do people think?
This is what the designers of Java thought, after studying C++'s
exceptions. Java is one of the few languages -- if not the only one --
that has compile-time exception checking. This was thought to be good,
but now many people think it was a mistake. See
http://www.mindview.net/Etc/Discussions/CheckedExceptions .
Regards,
Klitos
[ *** LongSig auto truncated *** ]
More information about the Effective-cpp
mailing list