3 ms·
I guess it depends on the language but I've definitely had problems with codebases that depended heavily on static initializers. IMO it's usually better to expl
by cageface 5y ago
I guess it depends on the language but I've definitely had problems with codebases that depended heavily on static initializers. IMO it's usually better to explicitly bootstrap your code.
- Jensson 5y agoMost developers aren't fully aware of how static initialization works so putting it in your code usually isn't a good idea even if you know it, no, but it is a difference between static classes and namespaces.