Don’t say anyway, say anyhow

  • arendjr@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    1 day 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.