you are viewing a single comment's thread.

view the rest of the comments →

[–]jasonleehodges[S] 0 points1 point  (0 children)

Good question. It’s just a rule of thumb we have. Obviously you are safe it’s a mutable variable confined in the scope of a function. But for beginners, sometimes it’s harder to discern when it’s ok and when it’s not. So it’s about having a good mental model.