News for hackers. Stuff that matters.
Re:Explore the ownership system in Rust by azth on Tuesday January 20, 2015 @03:14AM (#8915945)
> Creating new objects in functions and returning them should be avoided if possible.

Isn't that how "constructors" in Rust work (i.e. `Foo::new()` calls)? Plus, with return value optimization, it should be pretty performant.

There are no comments on this comment yet.