Don't say anyway, say anyhow

you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 1 year ago

That’s fair, although technically you could catch SIGSEGV and release resources that way too.

Also, given that resources will be reclaimed by the OS regardless of which kind of crash we’re talking about, the effective difference is usually (but not always) negligible.

Either way, no user would consider a panic!() to be not a crash because destructors ran. And most developers don’t either.

  • source
  • parent