[rust-dev] Mutable files
troplin at bluewin.ch
Mon Jul 21 08:49:56 PDT 2014
Patrick Walton <pcwalton at mozilla.com> wrote:
> On 7/20/14 8:12 PM, David Henningsson wrote:
>> From a language design perspective, maybe it would be more intuitive to
>> have different syntaxes for copy and move, like:
As a rust newbie, that aspect aways makes me a bit nervous. Two quite
different operations with the same syntax and and simply changing a detail
in the struct can be enough to switch between the two.
AFAIK this also was one of the reasons (if not _the_ reason) why
std::auto_ptr was deprecated in C++.
More information about the Rust-dev