News for hackers. Stuff that matters.
Re:Ownership and Borrowing in D by didibus on Tuesday July 16, 2019 @01:37AM (#20447715)
Can Rust now handle partial move semantics on structs? I remember reading it couldn't do it before, and there were threads about how you should make small structs because of that, or that you should not use methods, because they take ownership of the full struct and not just the fields that they actually use, etc.
Re:Ownership and Borrowing in D by littlestymaar on Tuesday July 16, 2019 @03:33AM (#20448180)
It can, with the big caveat that it only works well if you don't cross a function boundary.
Re:Ownership and Borrowing in D by didibus on Tuesday July 16, 2019 @12:32PM (#20451564)
Ah, so passing a struct as an argument to a function will still take ownership or borrow the entire struct?