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

You're looking for blocks-as-expressions, e.g. the following is valid Rust:

    let x = {
        whatever;
        5
    }; // assigns 5 to x


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

Search: