• mkwt@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    21 hours ago

    It’s worse than that. In C++, if you fail to catch an exception, then std::terminate() is called. In Rust the only options are roughly equivalent to C++ noexcept, or std::terminate() [panic in Rust]. There’s nothing in between.

    • eldavi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      i’ve been meaning to get into rust; but i’m learning that i lack motivation if it’s not part of my job and becoming a sysadmin again doesn’t require it.