Am I guaranteed left-to-right code execution order...
# cfml-general
a
Am I guaranteed left-to-right code execution order for interpolations in a string?
Copy code
<cfset x = "la de #hasSideEffects(1)# la de ditty #hasSideEffects(2)#">
I'm not certain if that's a dumb question because of course I am or if that's a dumb question because of course I shouldn't ever do that.
b
Yes
a
FWIW, I didn't think it was a dumb Q. In fact it's good to see some CFMLers thinking about their code in this kinda way.
In my experience most CFMLers' understanding of how code runs is mostly "[hand wave] magic, I think", and muttering "if you wanna do Java, go do Java"
🤣 1
a
Thanks!