3 ms·
This is not even worth thinking about, just type " = {}" on every struct/class member and every variable declaration, and forget about all this nonsense.
by alexvitkov 1y ago
This is not even worth thinking about, just type " = {}" on every struct/class member and every variable declaration, and forget about all this nonsense.
- dataflow 1y agoThat's a bad idea. It defeats tools (warnings, sanitizers, etc.) that try to tell you you have forgotten to place the semantically correct value in your variables. If you want indiscriminate initialization, a compiler flag is the way, not forcing it in the source code.