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

Clarification needed in unwinding section #463

Open
camio opened this issue Sep 23, 2024 · 1 comment
Open

Clarification needed in unwinding section #463

camio opened this issue Sep 23, 2024 · 1 comment

Comments

@camio
Copy link

camio commented Sep 23, 2024

Don't build your programs to unwind under normal circumstances.

It isn't clear what "build your programs to unwind" means. Is this suggesting one should normally not use catch_unwind or that panic='abort' should be used?

Also, it would be helpful to see some examples of abnormal circumstances where unwinding is appropriate.

@ehuss
Copy link
Contributor

ehuss commented Sep 24, 2024

I believe it is saying you should not normally use catch_unwind. Or to put it another way, don't use panics for normal control flow.

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