When I convert list into array, the values are inserted starting from index 1. Index 0 is left empty.
Why is this happening, and more importantly, is there a way to change it so that it starts from 0 index?
Example:
<cfset myList = "A,B,C,D" />
<cfset myArray = ListToArray(myList) />
<cfdump var="#myArray#" />
Cause ColdFusion Arrays start at one. Are you actually referncing the 0 position and not getting an error?
Why did the designers of ColdFusion decide to index arrays from 1 rather than 0?