RAILO-197 Have the ability to implement closures or anonymous functions
Have the ability to implement closures or anonymous functions
Planned for Railo 4.0
Barney Boisvert commented
CFScript is declared to be ECMAScript-based, so that syntax is how CFSCRIPT ought to handle it. Obviously there is no need to deal with CFFUNCTION, because tags aren't expressions, but closures (and simple anonymous functions) must be. I'd personally much rather see a "short form" syntax (a la Groovy or Ruby) instead of the rather long ECMAScript syntax, but even with a little syntactic verbosity closures would be amazingly useful.