This one was also met with loud applause last night's Dallas usergroup presentation. Scorpio supports implicit array and structure creation. Here are some simple examples, first array:
<!--- CFMX7 code --->
<CFSET myArray=ArrayNew(1)>
<CFSET ArrayAppend(myArray, "Adam")>
<CFSET ArrayAppend(myArray, "Ben")>
<CFSET ArrayAppend(myArray, "Tim")>
<!--- In Scorpio you can use this code --->
<CFSET myArray=["Adam","Ben","Tim"]>
Here's how it works for structures:
<!--- CFMX7 code --->
<CFSET myStruct=StructNew()>
<CFSET myStruct.product="ColdFusion">
<CFSET myStruct.version=8>
<!--- In Scorpio you can use this code --->
<CFSET myStruct={product="ColdFusion", version=8}>
There are no comments for this entry.
[Add Comment]