I haven't touched C++ since Buzzpad, so we're talking 2002 -- I'm way behind the times, so I can't speak to the similarities.
That said, unless References are *required*, it's a very different viewpoint. The thing about Rust is that memory access is *always* strictly controlled, unless you break out into a block that is explicitly demarcated as "unsafe { }".
(Context: Rust originated with Mozilla, because building a modern browser requires both very high efficiency *and* extremely strong security guarantees. So they decided to first build a language that provided those from the ground up. The new Rust-based browser engine will be rolling up in near-term releases of Firefox.)
So the safety guarantees are much stronger than in an opt-in architecture. I have no idea whether C++ has a similarly "global" mode for this stuff...
(no subject)
Date: 2017-04-20 07:50 pm (UTC)That said, unless References are *required*, it's a very different viewpoint. The thing about Rust is that memory access is *always* strictly controlled, unless you break out into a block that is explicitly demarcated as "unsafe { }".
(Context: Rust originated with Mozilla, because building a modern browser requires both very high efficiency *and* extremely strong security guarantees. So they decided to first build a language that provided those from the ground up. The new Rust-based browser engine will be rolling up in near-term releases of Firefox.)
So the safety guarantees are much stronger than in an opt-in architecture. I have no idea whether C++ has a similarly "global" mode for this stuff...