Hacker News new | past | comments | ask | show | jobs | submit login

While in Rust I can assign string to foo and then update it with int

When do you need to do that? Can you give an example?




I suspect they're talking about shadowing. You can't change the type of an existing variable, but you can create a new variable with the same name but a different type.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: