Why people dislike global variables so much while I find them so convenient?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Jan 26 09:04:27 UTC 2022

On Wednesday, 26 January 2022 at 08:49:02 UTC, bauss wrote:
> I think it's especially important for compilers to not use 
> global state because you want to be able to localize every 
> single issue right away to a specific unit in the compiler.

I would think that you sometimes can gain a bit of performance by 
making the symbol table global (as you don't have to rebuild it 
for every source file), but it can become rather large so there 
is a trade-off.

More information about the Digitalmars-d mailing list