Catch exceptions in main()?
Closed this issue · 2 comments
elfring commented
I expect that exception handling is usually supported by a C++ program. I wonder why your function "main" does not contain corresponding try and catch instructions so far.
How do you think about recommendations by Matthew Wilson in an article?
Would you like to adjust the implementation if you consider effects for uncaught/unhandled exceptions like they are described by Danny Kalev?
sparkprime commented
That sounds reasonable. Given libjsonnet.so is a C wrapper around C++, it should also catch all the std exceptions and give a catchall exception handler for anything else that might happen.
elfring commented
Thanks for your source code improvement.