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

It's just type inference. Rust doesn't do automatic integer coercion on arithmetic operations, so once it knows the type of any of the numbers it can deduce the types of all the rest.


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

Search: