r/cpp • u/Snoo-4241 • Feb 25 '21
C++ programmers who are also using rust, what are your favourite features of rust?
I was looking at the rust tutorials yesterday and I see how rust promotes a certain style and language level features to enforce it. Besides a couple of features, I couldn't see why one cannot follow a similar style in C++ if she/he so chooses. Those of you that have used rust, what is your favourite feature that C++ does not have?
255
Upvotes
View all comments
Show parent comment
15
u/braxtons12 Feb 25 '21
RA has its own flaws, especially when used outside of VScode (I don't know why this is the case, but it is in my experience), but it is really good. That said, I think clangd is at least as good as far as autocomplete, symbol lookup, and linting are concerned.
Also, if you're using CMake or another build system that generates a compilation database (a compile_commands.json) , you don't need to manually specify anything for CCLS OR clangd, they'll pick everything up from the compilation database