4 ms·
Nitpick “2.5 Mutable Global State Avoid mutable global state. […] 2.5.2 Pros Occasionally useful.” So, are these pros of mutable global state or of avoidi
by stellalo 4y ago
Nitpick
“2.5 Mutable Global State
Avoid mutable global state.
[…]
2.5.2 Pros
Occasionally useful.”
So, are these pros of mutable global state or of avoiding it? Elsewhere pros and cons appear to refer to the description of the guideline, not the title (see 2.2 Imports).
- simonh 4y agoThere are pros to using it and pros to avoiding it. That’s not a contradiction because they are different pros. Just avoid it if you can, or unless the pain of doing so is too great to justify.
- zoomablemind 4y ago" [...] 2.5.4 Decision Avoid mutable global state." This style guide touches both pros and cons then states the decision.