3 ms·
> In C++ it's so rare If you were talking about C, perhaps. Modern C++ has a strict type system if you don't walk around it. Nevertheless, the borrow checker
by jfkebwjsbx 6y ago
> In C++ it's so rare
If you were talking about C, perhaps.
Modern C++ has a strict type system if you don't walk around it.
Nevertheless, the borrow checker can help with bugs that otherwise could be hiding, which is the actual advantage over C++. But those are not the kind you see right away after running your program again.
- IshKebab 6y agoI'm not just talking about the borrow checker though - Rust has a much more strict type system in general. It's really explicit about everything, for example you can't just `println!("{}", some_path)` because `Path` might contain invalid UTF-8 that can't be converted to a string.
- jfkebwjsbx 6y agoThat is the same in C++. Again, I think you are talking about C's type system, not C++'s.