Abort sounds great, but I’m having trouble understanding when I would want to use this.
The linked blog post says:
Why would you want to do this? Remember that panics are for unexpected problems, and for many applications, aborting is a reasonable choice. With an abort, less code gets generated, meaning that binary sizes are a bit smaller, and compilation time is ever-so-slightly faster.
I understand that with abort the compiler just doesn’t generate the stack unwinding code that it was making before, but I don’t understand what that is meant to be used for.
Is abort merely a shortcut that generates less code? What situations wouldn’t I want to unwind in? If I have some code that is pretty much guaranteed not to panic except in the worst possible cases, should I switch it to