Status/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 04/02/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: 3
ColdFusion as several different array-look-up functions which all do variations of the same thing:
* arrayContains()
* arrayFind()
* arrayFindNoCase()
* arrayFindAll()
* arrayFindAllNoCase()
What a mess. We don't need all of those, we just need one function:
integer function arraySearch(required Array arrayToSearch, required any objectToFind, optional String scope=(ONE|all), optional Boolean caseSensitive=TRUE)
I recommend deprecating that other mess of functions, and replacing with this one function.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3534476
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: