News for hackers. Stuff that matters.
Re:Fuchsia is not Linux by exDM69 on Thursday April 12, 2018 @04:31AM (#16818989)
The Singleton pattern can be used to fix the order of static constructors. I think that this is the only reasonable use for the singleton pattern (which is just a global variable in disguise).

In my opinion, it's better to not rely on static constructors for anything non-trivial (singleton or not). They can be such a pain in the ass to debug.

There are no comments on this comment yet.