Is there a name for this idiom? Is it good practice?
Is there a name for this idiom? Is it good practice?
No, and no, unless you count "Terrible" as an idiom name. There is no such thing as idiomatic mutable global state. Idioms exist to avoid such crap.