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: