News for hackers. Stuff that matters.
Re:Exploring Rust (from C#) by tomp on Wednesday March 23, 2016 @06:41PM (#11348867)
It does guarantee memory safety... until you need to write your own collection. Then it explicitly endorses unsafe code (as opposed to offering a more powerful proof engine). I'm find with trusting something (compiler, proof engine, stdlib), but the issue is that safe Rust is barely a complete language!
Re:Exploring Rust (from C#) by kibwen on Wednesday March 23, 2016 @08:10PM (#11349488)
This is a strange argument. The `unsafe` keyword only lets you do the following: dereference unsafe pointers, call unsafe functions (which usually either dereference unsafe pointers themselves, or are just wrappers over C functions, which are obviously unprovable), and mutate static data. Saying that safe Rust is "barely complete" is just as good as saying that Python is "barely complete" due to the fact that it doesn't allow you to read arbitrary locations in memory.