[wp-trac] [WordPress Trac] #22251: Helper function to simplify checking for constants
WordPress Trac
noreply at wordpress.org
Mon Oct 22 04:58:24 UTC 2012
#22251: Helper function to simplify checking for constants
-------------------------+------------------------------
Reporter: evansolomon | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by MikeSchinkel):
Replying to [comment:8 rmccue]:
> I think the configuration file should stick to constants for most
things. Allowing setting the properties in that manner would allow them to
be set anywhere in the code without a complicated setter.
What is really wrong with allowing them to be set anywhere, in practice?
After many years experience I'm still looking for a good reason that
"constants" need to remain immutable.
> Such a complicated setter would probably be a bad thing too, because I
can't see how you could possibly code such a thing without causing huge
problems.
Could you elaborate on the potential problems?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22251#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list