5 ms·
If you rely on global state, this global state is also mangled to a different symbol, this might be undesirable. For example, if you use a logger which relies o
by bjorn2k 7y ago
If you rely on global state, this global state is also mangled to a different symbol, this might be undesirable.
For example, if you use a logger which relies on a extern defined variable. Your singleton is duplicated.
Also all your code is duplicated.
I agree that how rust does it is a very nice solution.