A lacking feature in C++ is the ability to detect when exceptions are not handled.foo(bool x)
{
if (x)
throw("Error");
}
foo(true); // The compiler will not see this problem!
Why not add a VAX-feature where you list such possible errors? You can simply walk up the call-trees and see if any thrown objects might cause an "Unhandled exception".
A "Fix errors"-button would also be convenient, where the necessary code is added:foo(true); // I press "Fix" and it becomes...
try
{
foo(true);
}
catch(const char *e)
{
// TODO: Handle exception
}