New ColdFusion 8 Operators Rock!
Since I first started using ColdFusion (in the late 20th century), I have loved the language. Once of the few things I haven't loved about it, however, is the absence of JavaScript-like operators that so many other languages have.
myStruct = {key1 = "val1"};
myArray = ["val1","va12"];
and most of all:
<cfloop array="#myArray#" index="myIndex">
I am hoping that implicit array and structure creation is improved a bit in ColdFusion 9 though.
I like array looping, but it doesn't work as I had hoped. Still nice for certain situations though.
I am using file looping extensively on my current project - very nice!
OR = bValue1||bValue2
AND = bValue1&&bValue2
NOT = !bValue
EQ = bValue1==bValue2
<cfset a = {key1 = ["val1","val2"], key2={key1=1, key2=2}}
Good point. I haven't tried those yet. Most of them don't look like real time-savers over the existing syntax, but I have always really liked the "!" operator. It is clear and concise.
dfguy,
You can do that in ColdFusion 8.01.
What you can't do is <cfloop collection="#{one=1,two=2}#" item="key">, which would be really nice.
You're right it's not much of a time saver.
I tend to use them when I'm writing in script blocks as it just looks right. Having said that the logical operators look really odd in tag based cfml!