3 ms·
Have you tried modern C++ before switching to rust? Or were you already using it and it didn't provide all the necessary features?
by jason0597 6y ago
Have you tried modern C++ before switching to rust? Or were you already using it and it didn't provide all the necessary features?
- waheoo 6y agoDoes it have a borrow checker?
- pjmlp 6y agoIn the form of static analysis, lifetime checker.
- waheoo 6y agoSo no?
- pjmlp 6y agoDepends, not on the language, that is correct. However I always have static analysers enabled on my builds, so it is almost as if they were part of the language. Regardless if we are talking about Java, C# or C++. Just like most people that are serious about Rust have clippy always enabled, yet it does stuff that ins't part of Rust language spec.
- pjmlp 6y agoI am all for modern C++, and although I like Rust, C++ is more useful for my line of work. However, it doesn't matter how much modern we make C++, if you don't fully control your codebase, there is always going to exist that code snippet written in C style.