Comments by "George Albany" (@Spartan322) on "ThePrimeTime"
channel.
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
@anonymousalexander6005 Its a mistake to blame the language, and especially to point to C++ on this when the problem has nothing to do with C++, every single safety issue came from people refusing to use basic C++ features and just doing things the C way, (and C devs you put in Rust will just do the same thing in Rust because that's how they work) aside from static analyzers that prevent me from writing code that could introduce the problems claimed in the directive, if I don't use legacy C functions and rely on functionality introduced since C++11, I'll never run into the problem in the first place, even in C++98 I had all the tools necessary to replicate the safety of Rust, and by C++11, it was well ahead of it, static analyzers already tell you to stop doing things the C way and can error out on unsafe memory behaviors, and C++17 and beyond already gives us plenty of tools to deal with the remaining legacy C in a safe fashion.
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
The only reason anyone tends to dunk so hard on C++ is because most people are writing things the C (and never the C++) way or they're only maintaining a pre-C++11, probably even a pre-C++03, project. Most of the reason for why they can complain is specifically because its ubiquitous usage, the king's crown often makes a lot of angry and envious enemies. I could give you a list of crap wrong with C++ as a big C++ developer, none of which relate to safety because that is a solved problem in C++, and for which Rust literally cannot compare to and neither would anyone who goes to Rust would ever consider to complain about because they literally don't care for any other feature because its the only thing really going for Rust, elsewise Rust is one of many languages with similar features. Also the lack of a shared object ABI standard makes it exceedingly unsuitable for many applications, bad compilation times mixed with the lack of a universal ABI, which Rust seems unable to solve make it poorly suited. By the way Sean Baxter has proven with his Circle compiler that C++ can support an opt-in borrow checker, he's also about to submit a proposal to the ISO standard for a borrow checker to be added to the language, the issue on the papers github is 1984. (which is hilarious)
1