Open Sean1708 opened 8 years ago
I think this is a fairly uncontroversial example of an anti-pattern, but I don't think many people realise that std::sync::Once even exists.
std::sync::Once
One could argue that even direct use of std::sync::Once is an anti-pattern and lazy_static! should almost always be used instead.
lazy_static!
I think this is a fairly uncontroversial example of an anti-pattern, but I don't think many people realise that
std::sync::Once
even exists.