Paper: Messages for Intertask Communications

9 May 2022 by Phillip JohnstonThe famous paper “Global Variables Considered Harmful” gives insight into why global variables are problematic: You can’t prevent undesired access to the variables. You can’t prevent people from creating aliases to global data, making it hard to track down reads and writes to that data. Nothing prevents global variable shadowing (creating a local variable with the same name as a global variable, overriding the global definition in that scope). Whatever you insist is true about your global variables, especially relations between them, will inevitably be “false” at some moments in the program Fundamentally, global variables …

To access this content, you must purchase a Membership - check out the different options here. If you're a member, log in.