|
|
|
|
|
by bjorn2k
2521 days 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. |
|