Re:Rust means never having to close a socket
by kibwen on Tuesday October 07, 2014 @10:49PM
(#8425095)
> If you have to trust the library is bug free, you're
> really no better off than using C++ are you?
This is a pretty far-out argument. For any programming language and environment, unless every dependency of your program including the compiler and runtime can be proven correct via formal verification, you will be susceptible to bugs. That doesn't imply that all code in the world is topologically as unsafe as C++. I can segfault Python if I try hard enough, and that's a bug in Python. Likewise I can segfault safe Rust code if I try hard enough, and that's a bug in Rust. I don't believe that anyone is really of the misconception that the mere use of Rust absolves you from the bugs of others, because that same person would have to believe that Rust somehow makes all bugs impossible, including bugs in C code that Rust calls into.
So let me give everyone a source to cite on Wikipedia:
"Rust does not keep C code from segfaulting." ~ kibwen
So let me give everyone a source to cite on Wikipedia:
"Rust does not keep C code from segfaulting." ~ kibwen