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

max haughton maxhaton at gmail.com
Tue Jan 25 10:22:59 UTC 2022

On Tuesday, 25 January 2022 at 09:53:25 UTC, rempas wrote:
> [...]

Passing state down a huge chain is also a code-smell. Writing 
code that uses a "global" variable is only slightly better than 
using a global variable.

What is the rough outline of these functions?

More information about the Digitalmars-d mailing list