• TehPers ( TehPers@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Their suggested replacement is closer to C#'s is keyword:

    if foo is Some(foo) {
        // ...
    }
    

    The issue here is that we still have let-else, which can’t be translated as easily:

    let Some(foo) = foo else {
        todo!();
    };