2 ms·
The criticism is that a struct literal allows you to not specify some (or all!) of the field. The argument is that this is brittle since, as with what was descr
by saghm 7y ago
The criticism is that a struct literal allows you to not specify some (or all!) of the field. The argument is that this is brittle since, as with what was described in the post, if you add a new field, you might forget to use the field in all instances of the struct being constructed.