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

And while the headline features of Rust are memory safety and fearless concurrency, the whole language and ecosystem is designed around making it hard to do the wrong thing on accident.

Which in this instance also means that floats stay floats, doubles stay doubles and u8 stays u8 unless you explicitly convert. If you're now asking what happens when you add a float to a double: that's a compiler error, you have to explicitly cast.



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

Search: