Open elfring opened 4 years ago
Hi Markus, Thank you for your recommendations. I know about exception handling in C++, and I used it here and there. I feel that in my everyday programming I apply it far too less. Rather than just catching the exception in the main, I would prefer to implement a proper exception handling throughout the whole application - starting deep down in code where they actually occur. Would you be willing to participate in that work? Adrian
I would like to achieve a bit also in such a software area. The application of C++ exceptions can eventually be improved further.
How should a production-quality main() function look like?
:crystal_ball: Will anything be integrated into the affected source code (from linked information sources)?
Hi Markus, I will not write any such source code myself. But if you create a pull request, I am glad to merge it.
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?