|
|
|
|
|
by javierhonduco
711 days ago
|
|
Personally I’m not a fan of Go’s default zero-initialisation. I’ve seen many bugs caused by adding a new field, forgetting to update constructors to intialise these fields to “non-zero” values which caused bugs. I prefer Rust’s approach where one has to be explicit. That being said it’s way less complex than C++’s rules and that’s welcomef. |
|