3 ms·
Do you have any numerical evidence for that? I would suspect it is slightly denser.
by klysm 5y ago
Do you have any numerical evidence for that? I would suspect it is slightly denser.
- ncmncm 5y agoIn my experiments from a few years ago, they were exactly even, in both size and speed. Those experiments were far from comprehensive, and both languages have changed since, but not really much. The differences between coding styles of different people are generally much larger than any difference I could imagine showing up in real programs. What we can say is that both C++ and Rust can be much more concise, much more readable, and much less less prone to trivial mistakes than C or C-like C++.