tracker issue : CF-4020372

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

Arrow functions

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 07/13/2015

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 13

Pls implement shortcut notation for function expression as arrow functions, eg:

// long-hand
f = function(x,y){
   return x +y;

// short hand
f = (x,y) => x+y;

Full syntax rules here:

this just makes it easier (clearer?) when using a lot of inline function expressions, such as BDD-inspired unit tests and the like.

Note Lucee has an implementation using a skinny arrow rather than match JS which uses the fat arrow.

Also they have implemented them to not be closures. Please do not do that.

Relevant Lucee tickets:



----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4020372

External Customer Info:
External Company:  
External Customer Name: Adam
External Customer Email:  
External Test Config: My Hardware and Environment details:



Vote by External U.
6666 | July 13, 2015 04:43:15 PM GMT
Please explain in 25 characters or more how this feature impacts productivity and why you are adding a vote
Vote by External U.
6667 | July 13, 2015 04:44:51 PM GMT
Dooooooooo iiiiiiiiiiitttttt
Vote by External U.
6668 | July 13, 2015 05:15:00 PM GMT
Yes, please implement as closures with the JavaScript syntax.
Vote by External U.
6669 | July 13, 2015 06:03:58 PM GMT
Keep in line with JS... its a good base of developers to try and pull from.
Vote by External U.
6670 | July 13, 2015 06:06:45 PM GMT
This is a bug. It does bug things. Bug bug bug.
Vote by External U.
6671 | July 13, 2015 07:38:16 PM GMT
+1 Great suggestion
Comment by External U.
6663 | July 13, 2015 07:52:52 PM GMT
+1 Great suggestion ...............................
Vote by External U.
6672 | July 13, 2015 07:53:18 PM GMT
I like it very much, please implement this......................................
Vote by External U.
6673 | July 13, 2015 08:00:26 PM GMT
This would be a nice addition to the language.
Vote by External U.
6674 | July 13, 2015 10:01:41 PM GMT
Can you please confirm in what version of ColdFusion this is going to be implemented in. It says "to fix" but does not say which version.
Comment by External U.
6664 | January 25, 2016 08:18:40 AM GMT
Adobe, hello? What does it actually take to get you to engage with your clients?
Comment by Adam C.
6665 | October 30, 2017 08:53:07 PM GMT
+1 ...........
Vote by Aaron N.
6675 | February 15, 2018 08:38:52 AM GMT
really need this feature it is really basic programming enhancement. Adobe please take a look and implement.
Comment by Siddiq M.
27584 | April 18, 2018 06:30:02 PM GMT
This bug is a duplicate of [] The fix for this bug will be tracked as part of the bug CF-4198396. 
Comment by Suchika S.
29401 | July 25, 2018 09:01:20 AM GMT