News for hackers. Stuff that matters.
Re:Rust is mostly safety by crossroads1112 on Thursday December 29, 2016 @01:38PM (#13279082)
In Rust, lossy conversions only occur if you you explicitly write `var as type` and even that syntax is limited to certain types e.g. you can't coerce an integer to a function. In order to do something crazy like that, you'd need to call the unsafe `mem::transmute` function. The language cannot be much safer in this regard short of disallowing any sort of type conversions.

There are no comments on this comment yet.