Why I Prefer Exceptions to Error Values - eviltoast
  • Kissaki@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    Does the performance cost of error checking/result types they discovered in C++ apply to languages that have native result and option types like Rust?

    I would hope they were able to find efficient, performant implementations, and that branch prediction picks the expected non-error branch in most cases.