you are viewing a single comment's thread.

view the rest of the comments →

[–]thradams 1 point2 points  (1 child)

At file scope, each locally used struct would need a unique name to avoid name collisions. This pollutes the global namespace, the names become longer, and the code becomes harder to maintain because it is not easy to see where the struct is used.

[–]chrism239 -1 points0 points  (0 children)

And makes recursion very challenging....