5 ms·
As someone who had a go at both languages Rust has some hard topics, but the time needed to know enough Rust to be able to not shoot yourself in the foot while
by atoav 6y ago
As someone who had a go at both languages Rust has some hard topics, but the time needed to know enough Rust to be able to not shoot yourself in the foot while getting things done is lower than in C++. Of course this has to do with Rusts philosophy of not letting you shoot yourself into the foot, while in C++ you'd have to get much more experience to achieve the same robustness.
- yahyaheee 6y agoYea I don’t think it’s even comparable, and with c++ it’s still a nightmare to import anything not to mention having to deal with the horribly awkward syntax they have accumulated over the years
- pjmlp 6y agoJust wait until Rust gets 50 years old. As for the rest, there is vcpkg and conan nowadays.
- yahyaheee 6y agoUsed both vcpkg and conan, not comparable to the ease of use of cargo. Needed some high performance code last year, wrote it all in c++. This year migrated to Rust, will never look back. C++ is going to need to break things if they want to fit into the modern landscape.
- pjmlp 6y agoCargo is only simple if one is doing FOSS with Rust only code. Speaking of modern landscape where is a Rust IDE comparable with VS, C++ Builder, QtCreator?
- yahyaheee 6y agoCargo works fine with private repositories, and I use it wrapping C++ code and that works fine as well. I use VScode with rust-analyzer and its been a great experience, had an easier time with it than the c++ vscode extension.
- jfkebwjsbx 6y ago> Cargo works fine with private repositories So does any of the main package managers for C++. > had an easier time with it That is an empty argument. Not to mention Rust is only now in 2020 starting to get actual IDE support. For C++ there are at least 8 major production GUI IDEs available, plus a few TUI ones too, plus dozens and dozens of specialized tools around it.
- yahyaheee 6y ago> So does any of the main package managers for C++. Never said they didn't... > That is an empty argument. Not to mention Rust is only now in 2020 starting to get actual IDE support. Actually thats an empty argument, I'm responding to someone saying rust doesn't have IDE support. It does, I use it every day and it works great. Not saying c++ doesn't just saying it worked better for me than the MS c++ vscode extension.
- jfkebwjsbx 6y agoThe person you are responding to is talking about an actual IDE, not an extension to VS Code. rust-analyzer is great and we have waiting for it a long, long time. But it is not an IDE. Neither is the MS C++ extension.
- yahyaheee 6y agowhat? Yes it is, vscode was built to be powered by extensions and they work great. I've been using vscode for the last 5 years for all kinds of languages and have never though to myself "I wish I had an IDE"
- jfkebwjsbx 6y agoYou can also do all your work in a raw text editor, yet you prefer VS Code. Same distinction for an actual IDE. The Rust and C++ extensions are very far from what an IDE offers. They only handle basic debugging and code completion/browsing. With a few more extensions you can a bit better, but again, you are doing the job that an IDE is supposed to solve for you.
- Ar-Curunir 6y agoPresumably the C++ package managers don’t do very well when interacting with non C/C++ code either? I don’t understand the argument...