5 ms·
> The misconception is that if you're using rust you're safe from the bugs that other programmers may have made... which is not true. Of course it's not true,
by dbaupp 12y ago
> The misconception is that if you're using rust you're safe from the bugs that other programmers may have made... which is not true.
Of course it's not true, but the libraries you're using will (hopefully, for the most part) be written in Rust, which increases the level of trust.
> There's a trust chain involved; if you depend on a library you trust it's bug free and won't delete your harddisk and crash your program, but there's a difference between trusting a library is not malicious, and trusting a library is bug free.
> If you have to trust the library is bug free, you're really no better off than using C++ are you?
The libraries are written in Rust, so have all the benefits of that. It is nonsense to say that "libraries can have bugs so you might as well use C++".
- shadowmint 12y ago> It is nonsense to say that "libraries can have bugs so you might as well use C++". My argument is that if you assert 'rust is 100% safe' then you must assert, all your dependencies are bug free. If you can somehow magically assert 'all my code is bug free', that would be great... but if so, you wouldn't need the borrow checker at all would you? (I'm certainly not endorsing using C++ :P I'm specifically talking to the assertion that rust code can be safe, as per the definition of safety in the guide, that certain operations are impossible; certainly, and absolutely, rust code is safer and more trust worthy (imo) than c/c++ code... but you've got to be reasonable about what you're arguing. 'rust is magical and can never crash' turns up in blog posts a lot)
- kibwen 12y ago> 'rust is magical and can never crash' turns up in blog > posts a lot The next time that you see someone doing this, please correct them. Misinformation does none of us any favors.
- kbenson 12y agoI believe that's what started this entire thread. ...there are two things in this article which are, I'd say, 'common misconceptions' about rust.