tracker issue : CF-4201202

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] ER for: Callback support in ArrayContains and ArrayDelete

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/TooManySideEffects

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()

Created: 02/16/2018

Components: Language, Closures

Versions: 2018

Failure Type: Others

Found In Build/Fixed In Build: /

Priority/Frequency: Normal /

Locale/System: /

Vote Count: 0

Callback support was added to ArrayFind. ArrayFindAll has always supported callback.

This ER is to add same callback support to ArrayContains and ArrayDelete.

Of course this means ArrayContains/ArrayDelete will treat the passed-in function as a callback instead of the value to search for. But same was the case for ArrayFind, and searching for functions isn't even 100% reliable. So that definitely shouldn't preclude same enhancement to be made for ArrayContains/ArrayDelete that was made for ArrayFind.

Attachments:

Comments:

Please provide a practical usecase for having callback support in ArrayContains and ArrayDelete.
Comment by Vijay M.
27530 | March 07, 2018 07:26:35 AM GMT
As discussed with Aaron over forum thread, there will be backward compatibility issues with this change. Hence, we will not be doing this enhancement.
Comment by Vijay M.
27531 | April 23, 2018 10:21:44 AM GMT