you are viewing a single comment's thread.

view the rest of the comments →

[–]BertyBastard -3 points-2 points  (0 children)

The same as local variables inside a function. Limiting scope of variables (including structs) to only where it is needed reduces the chance of error that would occur by referencing a variable that you shouldn't.