The general wisdom is that one shouldn't proliferate global state. Configuration items aren't stateful. They are essentially read-only, named constants. Non-constant global variables, particularly when they're set frequently from all over a program, can make that program wickedly hard to understand. Not so with constants.
If you want to be doubly righteous, you can use constant to prevent someone from accidentally writing to your configuration items.
In reply to Proliferating Globals (Re: Re: Re: Access Log Reader)
by dws
in thread Access Log Reader
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |