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

Types go after identifiers because then the types can be left out when using type inference:

    let nums = Vec::new();
    nums.push(0_u32);
    // nums: Vec<u32>


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

Search: