Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that in Rust, `.match` would itself provide the general way:

    let number = foo.bar().baz().match { it =>
        it + 1
    };


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: