News for hackers. Stuff that matters.
Re:My least favorite Rust type by estebank on Tuesday September 22, 2020 @12:08AM (#24550736)
Why do you have the builder pattern (other than the verbosity of declaring them)?

I normally just leverage a couple of features: Derive(default) to have an "empty" initialized value and the struct field filling syntax

  let x = Foo { field_i_care_about, ..Default::default() };

There are no comments on this comment yet.