News for hackers. Stuff that matters.
Re:A brief introduction to C++'s model for type- and resourc... by steveklabnik on Friday January 15, 2016 @12:59PM (#10910890)
In Rust, we don't have special constructors, just functions, and to construct a struct, all of its members must be valid, and assigned at the same time. So a Rust-style "constructor" in this vein would return a Result<MyStruct, Error>, basically.

There are no comments on this comment yet.