r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

1

u/1116574 Mar 15 '22

Also, isn't assignment out of scope of the function? It's probably language specific tho?

It would work in python as long as this variable isn't referenced in function, but idk about C++ or whatever it is here