Good morning. We're in the process of migrating a...
# lucee
d
Good morning. We're in the process of migrating an Adobe CF application to Lucee. Does lucee not have destructuring assignment like Adobe CF does? https://coldfusion.adobe.com/2020/11/destructuring-assignment-property-shorthand/ This works in Adobe CF, but not Lucee. I assume I'm just out of luck and need to refactor a little bit.
Copy code
<cfset variables.things = {"apples": ["gala","honeycrisp","granny smith"], "robots": true, "place": {"lat": 1, "lon": 2}}>
<cfdump var="#variables.things#">
<cfset { apples, place } = variables.things>
<cfdump var="#apples#">
b
No, Lucee hasn't added desctructuring, or the rest and spread operators.
👍 1