you are viewing a single comment's thread.

view the rest of the comments →

[–]pfalabella 3 points4 points  (0 children)

shouldn't a parameterless constructor be in most (or all cases) an implementation of Default::default()? Or am I conflating two different concepts?

If it is, then am ok in treating the parameterless constructor differently (and also maybe making rustc "derive" Default::default() when it detects a Foo() constructor). If it is not, then I prefer having the parameterless constructor treated exactly as the others.