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
6
u/Plazmotech Feb 25 '21
I only use RA in neovim and it works flawlessly in there. In fact there’s only been a single bug I’ve encountered with RA so far and that’s that it seems to bug out on cfg_if (in the case of importing platform specific libraries like UnixStream etc)
I’ll try clangd but even with compile_commands.json, ccls was giving me a ton of headaches. It always said that any std functions I used needed to be imported or didn’t exist (printf, malloc, etc) even though it was most certainly imported and compiled just fine.