Status/Resolution/Reason: To Fix//Investigate
Reporter/Name(from Bugbase): Luis M. / ()
Created: 03/29/2020
Components: Language, Script CFC
Versions: 2018
Failure Type: Enhancement Request
Found In Build/Fixed In Build: /
Priority/Frequency: Normal /
Locale/System: / Linux All
Vote Count: 1
I would love for Adobe to implement immediate returns from an assignment expression. This is supported in Lucee (fyi)
function getAuthUser(){
return variables.userService = variables.wirebox.getInstance( variables.settings.userService );
}
As you can see, the return is the assignment of the variables userService. This compresses expressions, instead I woudl have to do this in Adobe:
function getAuthUser(){
variables.userService = variables.wirebox.getInstance( variables.settings.userService );
return variables.userService;
}
Which is another line of code and well, not a nice expression.
Attachments:
Comments: