Re:Explore the ownership system in Rust
by dan00 on Tuesday January 20, 2015 @05:57AM
(#8916359)
> It feels much easier to reason about but then again maybe that's just because I'm more familiar to it.
I'm a professional C++ programmer for a decade and have started to look
into Rust, and there's no way that C++ is easier to reason about.
There's no automatic copying of complex data in Rust, you can't move
something away and later use it again, you can't invalidate interators
and this list goes on and on.
At the beginning you have to get used to the borrow system of Rust,
learn the idioms, but after that, it really seems to be in a lot of
parts a better C++.
I'm a professional C++ programmer for a decade and have started to look into Rust, and there's no way that C++ is easier to reason about.
There's no automatic copying of complex data in Rust, you can't move something away and later use it again, you can't invalidate interators and this list goes on and on.
At the beginning you have to get used to the borrow system of Rust, learn the idioms, but after that, it really seems to be in a lot of parts a better C++.