Duplicate
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Adam Cameron
Adam CameronNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Priority
Created 4 June 2015 at 13:25
Updated 20 October 2021 at 16:56
Resolved 25 November 2016 at 20:55
Currently it seems like some list member functions have been implemented without a `list` prefix, eg: `String.reduce()` `String.filter()`. However this is "less than ideal" for a few reasons:
ColdFusion prefixes these methods with "list" so as to more clearly identify they're not working on the plain old string. So you have an incompat. See https://bugbase.adobe.com/index.cfm?event=bug&id=3752316 for further discussion on this.
A method on a string should treat the string just as a string, without "hiding" any special meaning like "actually we're treating it like a char-delimited list", as per this case.
Doing it this way blocks you from having actual string member functions for these, eg: treating a string like a collection of characters (see LDEV-386).