Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 06/29/2015
Components: Language
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 8
https://en.wikipedia.org/wiki/Fluent_interface
The current implementation of the member functions for structs and arrays etc are a bit of a literal translation from their procedural counterparts. This was less than ideal as those functions tend to return completely pointless boolean values indicating "success" (surely a lack of exception indicates success?)
Instead these should be refactored to return the object they acted on, so as to allow method chaining, eg:
{}.append(key1="value1").append(key2="value2")
etc
I think *some* methods are already "fluent" (although I might be confusing ColdFusion with Lucee here), but any method which current returns a pointless value simply because the equivalent procedural function does should be revised.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4013838
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: