Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch exceptions in main()? #38

Closed
elfring opened this issue Apr 13, 2016 · 2 comments
Closed

Catch exceptions in main()? #38

elfring opened this issue Apr 13, 2016 · 2 comments

Comments

@elfring
Copy link

elfring commented Apr 13, 2016

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?

@bertmaher
Copy link
Contributor

Thanks for the feedback! I don't feel strongly about catching exceptions in redex's main(), to be honest. If an exception somehow bubbled up to main, we're just going to die anyways, and we don't have any resources that need to be released that won't be freed by the OS. Maybe we could provide a nice message, but we're not at that level of polish yet.

@elfring
Copy link
Author

elfring commented Apr 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants