4 ms·
Hopefully you'll combine that idiom with "make the zero value useful" so that omitted fields still give valid behavior.
by sagichmal 10y ago
Hopefully you'll combine that idiom with "make the zero value useful" so that omitted fields still give valid behavior.
- dllthomas 10y agoReading on, I see that. It still breaks down when a zero value is meaningful for a configuration parameter, but means something different than what was done before the parameter was configurable. I think that's probably not super often. In light of all this, I still don't really see what harm we're avoiding by preferring the inlined struct initialization. I do agree it looks a little prettier, but the article seems to give it a greater import.