As you probably know, ColdFusion 8 gave us a long-needed shorthand for creating arrays and structures:
- a = "1",
- b = "2",
- c = "3"
- }>
- "a",
- "b",
- "c"
- ]>
Unfortunately you couldn’t nest those constructs. With the 8.0.1 updater though, you now can:
- a = ["x", "y", "z"],
- b = ["s", "t", "u"],
- c = ["m", "n", "o"]
- }>
This is fantastic when you’re trying to make configurable code - a chunk of code whose basic function is tweakable by updating a few settings variables at the top instead of hard-coding them in throughout the code (for example - URLs, filesystem paths, data sources, etc).
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment