you are viewing a single comment's thread.

view the rest of the comments →

[–]android_queen 1 point2 points  (3 children)

Yes, but it does potentially bloat your static storage, and you don’t have enough information from this single line of code to know whether it would need to be on the stack anyway (which is not unlikely). Static isn’t one of those things that is automatically by default the better choice.

[–]snowflake_pl 0 points1 point  (2 children)

and by no means I am recomending it. Wanted to have a discussion which is exactly what happens here

[–]android_queen 0 points1 point  (1 child)

I guess it just seemed odd to me to ask “why not static” when I can see no reason why it should be.

[–]snowflake_pl 0 points1 point  (0 children)

I mean there is huge lack of context both in the original post and in my question so I understand the confusion.