Re:1/0 = 0
by blub on Saturday August 11, 2018 @01:16PM
(#17740555)
In C++ the default behaviour is for the runtime to call std::terminate, not segfault. It's easy to catch exceptions by wrapping the callable in a packaged_task and then the exception is available in the future.
The key point is that the exception is rethrown when accessing the result through the future.
Swallowing exceptions is a really poor idea. Does Java really do that?
Swallowing exceptions is a really poor idea. Does Java really do that?