nomicon icon indicating copy to clipboard operation
nomicon copied to clipboard

Clarification needed in unwinding section

Open camio opened this issue 1 year ago • 1 comments

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.

camio avatar Sep 23 '24 22:09 camio

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.

ehuss avatar Sep 24 '24 01:09 ehuss