3 ms·
C++ is getting more complicated and hence less interesting every day. How is Rust solving this particular issue?
by amelius 12y ago
C++ is getting more complicated and hence less interesting every day.
How is Rust solving this particular issue?
- pshc 12y agoPossibly like this: http://discuss.rust-lang.org/t/pre-rfc-placement-box-with-placer-trait/729 http://discuss.rust-lang.org/t/pre-rfc-placement-box-with-pl... It looks like it'll be supported first-class for 1.0. By my guess we'll be writing things like this: // NOTE: This is not real code, just a guess on my part! let heavy_objects: Vec<Heavy> = vec!(); // Construct a new Heavy in-place at the end of the vector. box(heavy_objects.emplace_back()) Heavy::new();
- harry8 12y agoThe fact they won't deprecate anything is appalling. There are warts on warts on warts for sure and just about any criticism of C++ has some basis. It may be surprising for you to learn that from the perspective of a programming something C++11 is simpler and more straightforward than c++ was previously. Believe it or not. I know didn't think it would be.
- mmaldacker 12y agoThey do deprecate things, e.g. exception specification and the auto keywords was re-purposed.