There was actually a debate about doing this before 1.0, but it’s surely too late to consider changing the convention now.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Poll: `Foo::new()` vs `Foo()` as the default constructor | 39 | 9756 | March 25, 2019 | |
Struct sugar | 50 | 8419 | March 25, 2019 | |
Eliminate redundancy in constructor-like methods | 7 | 1943 | March 25, 2019 | |
Pre-RFC: Using existing structs and tuple-structs as enum variants | 40 | 5011 | March 25, 2019 | |
Pre-RFC: `=` for struct construction
|
54 | 3573 | March 25, 2019 |