• arc@lemm.ee
    link
    fedilink
    arrow-up
    22
    arrow-down
    4
    ·
    1 year ago

    Swift and Rust have a far more elegant solution. Swift has a pseudo throw / try-catch, while Rust has a Result<> and if you want to throw it up the chain you can use a ? notation instead of cluttering the code with error checking.