Okay, so Christmas is past and CF9 is long out of the beta stage. But my tiny wish remains. The reasonable part of me says, "It is really not that hard to construct an alternative". Especially with all the enhancements in CF8 and CF9. It comes much closer to perfection than in any previous versions.
<cfscript>
for (x = 1; x <= arrayLen(myArray); x++)
{
WriteOutput(myArray[x] &"<hr />");
}
</cfscript>
But there is something classic and elegant about a
for in loop. Simple, intuitive and just downright beautiful code. If it were any more beautiful, I just might break down and cry. {Sigh} If only it worked. If only ...
<cfscript>
for (x in myArray)
{
WriteOutput(x &"<hr />");
}
</cfscript>
<childishWhine>
All the other languages have it? Why can't we? </childishWhine>
;)
...Read More