[rust-dev] Mutable files
pcwalton at mozilla.com
Sun Jul 20 21:06:13 PDT 2014
On 7/20/14 9:04 PM, Patrick Walton wrote:
> On 7/20/14 8:12 PM, David Henningsson wrote:
>> Cool, thanks for the answer. These restrictions seem somewhat complex.
> They are required. Otherwise we would end up with a C++-like situation
> where copies end up happening too frequently.
Also note that these rules, far from being "complex", end up making the
language much simpler than C++, as copy (or D-like postblit)
constructors are not required. All Rust types, if they are copyable at
all, can be copied by simply moving bits around.
More information about the Rust-dev