BoltWire

Innovative Ideas :: Radical Results!

INFORMATION

DOCUMENTATION

SOLUTIONS

Config Arrays

Documentation > Previews for 4.xx > Config Arrays

Here's another feature I'm inclined to strip out. Currently we have the ability to set config arrays in site.config like this:

one:a: hi
one:b: bye

It is not used by the core at all but is available to plugins (I don't know of any that use it). Stripping it out would simplify the pattern used and make the config code a bit easier also. As this is accessed hundreds of times for every page load, it could result in a significant savings.

There is also an easy alternative. One could just as easily do:

one_a: hi
one_b: bye

And get the same effect. And to me the markup seems even clearer. Any reason not to make this change?

Copyright © 2013, all rights reserved.