tracker issue : CF-3824254

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

Ability to declare and execute closure syntax

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Luis Majano / Luis Majano (Luis Majano)

Created: 09/14/2014

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Chrome

Vote Count: 1

Duplicate ID:	CF-3346435

Since closure support has been added, why not add inline execution of closure declarations as well.  This works in other closure supported languages:

{code:JavaScript}
questions = ( function(){
	var q = [];

	arrayAppend( q, now() );

	return q;
} )();
{code}

As you can see, you declare the closure in parenthesis and then follow it with a *()* to execute it.  This does not work currently

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

Watson Bug ID:	3824254

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

Attachments:

Comments:

I've already raised this: https://bugbase.adobe.com/index.cfm?event=bug&id=CF-3346435
Comment by External U.
10910 | September 15, 2014 12:50:34 AM GMT
Please explain in 25 characters or more how this feature impacts productivity and why you are adding a vote.
Vote by External U.
10912 | September 18, 2014 12:09:21 AM GMT
Closing bug as a duplicate of CF-3346435. The enhancement will be considered for the next release
Comment by Immanuel N.
10911 | September 19, 2014 04:55:21 AM GMT