tracker issue : CF-3041677

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

Bug 83387:(Watson Migration Closure)I would like to see closures implemented in CFML

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): marc esher / marc esher (marcesher)

Created: 06/18/2010

Components: Language

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 7

Problem:

I would like to see closures implemented in CFML. Closures are a great fit for a dynamic language like ColdFusion. They are becoming a fundamental programming technique, and their heavy usage in languages such as Javascript, Scala, Ruby, and Groovy indicate that they are, indeed, mainstream. Let's not let CFML fall even further behind.
Method:

I'm no language designer, so I don't know what a closure implementation *should* look like in CFML. I have, however, discussed the subject of ColdFusion and closures here: http://blog.mxunit.org/2010/01/what-would-your-cfml-look-like-with.html
Result:

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

Watson Bug ID:	3041677

External Customer Info:
External Company:  
External Customer Name: marc esher
External Customer Email: 70390EBF47F01CAF992015B9
External Test Config: 06/18/2010

Attachments:

Comments:

Closures in CFML is a feature that's long overdue. For my detailed commentary, check my response to the MXUnit blog post http://blog.mxunit.org/2010/06/your-cfml-wish-list.html.
Vote by External U.
22031 | November 11, 2011 12:56:15 AM GMT
This bug has been voted..
Vote by External U.
22032 | November 11, 2011 12:56:17 AM GMT
Left a longer comment, but I want closures that are really just object/function pointers. So that the passed function reference maintains its link to it's CFC/object. Also in the comment I talked about passing arguments to pass to the callback to create generic callbacks. Thanks
Vote by External U.
22033 | November 11, 2011 12:56:18 AM GMT
This bug has been voted..
Vote by External U.
22034 | November 11, 2011 12:56:19 AM GMT
Yeah, I plan to propose a closure syntax to the CFML Advisory Committee and I expect Railo will implement a version to get feedback from CF devs.
Vote by External U.
22035 | November 11, 2011 12:56:20 AM GMT
I love the thought here. Consider anonymous functions & closures please :)
Vote by External U.
22036 | November 11, 2011 12:56:22 AM GMT
This bug has been voted..
Vote by External U.
22037 | November 11, 2011 12:56:23 AM GMT