3 ms·
> I see that you have not kept up. I have not (C++14 onwards was roughly where I started paying less attention), and that was partly my point. C++ has gone th
by imron 7y ago
> I see that you have not kept up.
I have not (C++14 onwards was roughly where I started paying less attention), and that was partly my point. C++ has gone through dramatic change, and if I'm going to go through that dramatic change, I might as well do it with a language that has modern features and safety built in, and doesn't require extra boilerplate to do it.
Looking up the rule of zero, it seems there's still some debate about whether it's a good thing or not [0] (don't know if it's been resolved yet), and it still doesn't preclude you from knowing about the rule of 5 and the side-effects of declaring or not declaring certain operators/constructors/destructors.
> As the language gets more capable, the code you write gets simpler.
> I don't think that is happening in Rust.
This happens quite often in Rust, see for example error handling and the evolution of the ? operator, and the recent addition of async/await, and unlike c++, as the language gets more capable the changes required in terms of coding style and updating your mental model of how things work is usually not so dramatic.
0: http://scottmeyers.blogspot.com/2014/03/a-concern-about-rule-of-zero.html http://scottmeyers.blogspot.com/2014/03/a-concern-about-rule...
- ncmncm 7y ago2014 was a long time ago. Scott has retired. The better alternative to his suggestion was noted right there in the comments. Rules of 3 or 5 concern only designers of a library, and if you are designing a library, you may ignore them now.