Status/Resolution/Reason: Closed/Deferred/NotEnoughTime
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 08/19/2013
Components: Language
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 1
See http://cfmlblog.adamcameron.me/2013/08/thinking-about-operators-in-cfml.html
This is trickier as it creates a "range" (http://ruby-doc.org/core-2.0/Range.html) which is a concept CFML doesn't have. However the concept is an interesting one.
The range 1..10 is basically a sequence of values from 1-10. If one was to convert it to an array, one would have [1,2,3,4,5,6,7,8,9,10].
Ranges can be used for sequences, eg:
for (i in range){
// do stuff
}
//or
range.each(callback);
Or in conditional statements, eg:
if (examScore in 50..100){
//pass
}else{
//fail
}
and that sort of thing.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3614460
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: