Comments by "Anony Mousse" (@anon_y_mousse) on "Best Alternatives to Woke Software" video.
-
6
-
4
-
@BenQ.-ys4kp I've been learning it for the past 3 or 4 years and let me tell you, it's not a good language. I keep watching videos on it and they're nearly all filled with lies. They allude to or insinuate that it'll prevent every error and then sea lion on you if you call them out on it. Fact of the matter is, the types of errors that the language tries to prevent aren't actually prevented wholly by the language nor in combination with libraries that you'll inevitably have to use if you don't rewrite literally everything in Rust. The biggest source of errors is failure to check user input and it doesn't actually make that any easier. If a Rustacean tells you that memory misuse is the biggest source of errors, they're either spreading propaganda or being facile because that's only how things end up when you fail to check user input.
If you want a few examples of what's wrong with the language, look at strings, lifetimes, constructors, mutability, references. Certain keywords irritate me, but I'll admit that that may just be a personal opinion. Things like fn, let, pub, impl, mut. I abhor Java-style singular use keywords like pub and fn. If I have to use a keyword to declare a group of functions as public, then it should allow me to collectively refer to those functions instead of requiring that I use pub for every single function. I just hate function keywords in general. Look at C++ lambdas for an example of doing it mostly right. No keyword at all, though I do have issues with the array of captures component. If anyone tries to claim anything about "the most vexing parse", I'll point out that you can and should use braces to invoke constructors in C++ now and that eliminates that weird self-imposed problem. I say now, but it's been since C++11, so it's not exactly a short time and in fact has been usable since before Rust existed.
Anyhow, if YouTube doesn't shadow or delete this and you do happen to actually read it, I'd suggest C if you don't already know it, and just ignore newer languages, but if you must have classes, operator overloading, templates and RAII, then sure, go for C++.
1
-
1
-
1
-
1
-
1