3 ms·
And Rust, it isn't memory safe since you can go into unsafe anywhere, most languages doesn't allow unsafe code.
by Jensson 4y ago
And Rust, it isn't memory safe since you can go into unsafe anywhere, most languages doesn't allow unsafe code.
- jerf 4y agoMemory safety does not encompass code that is labelled and segregated as "unsafe", because by this definition all or nearly all languages are unsafe. There's always some way to execute some sort of assembly in the end.
- ithkuil 4y agoYou can write 100% safe code in rust. Just don't call into unsafe code or FFI into unsafe languages. Can you say the same with other languages like C/C++/zig/... ? Van you literally enforce with a compiler switch and/or linter that you're 100 using a safe subset of the language? You can view unsafe rust as a convenient way to go write in language that resembles rust what you'd otherwise write in C and call via a FFI