change lambda syntax from -> to =>

Description

Please consider changing the lambda syntax from -> to =>. I understand that there is plenty of precedent for -> in other langs, but the primary other language that CFML developers work with is JavaScript and its new lambda syntax uses =>. As someone who goes back and forth between the two languages constantly it would greatly reduce friction.

Activity

Show:

Kai Koenig 15 November 2015 at 00:40

+1, happy to support this change.

Sean Corfield 10 November 2015 at 23:51

I can see the arguments for matching JS syntax (even tho' I work more with languages that use ->). Micha's right that we should pick one syntax and JS makes more sense for CFML / Lucee.

Mark Drew 10 November 2015 at 16:36

Go the JS way!

Adam Cameron 13 July 2015 at 22:23

NB / FYI: I have requested same functionality for ColdFusion (12?): https://bugbase.adobe.com/index.cfm?event=bug&id=4020372

I have recommended to them they just implement it the way JS has.

Michael Offner 8 April 2015 at 13:16

but only because i have approved them ...

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Fix versions

Affects versions

Priority

Created 8 April 2015 at 00:51
Updated 5 May 2023 at 15:15
Resolved 18 January 2016 at 17:37

Flag notifications