• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    9 hours ago

    Most of the times you can just let ... else (which is basically a custom ? if you need if let ... else it’s because you actually need 2 branching code paths. In any other language you also do if ... else when you have 2 different code branches. I don’t see why this is a rust-specific issue.