Question regarding function and arguments
Hello, all,
This question is most likely for the Adobe Dev Team to answer, if any of them have time. But if anyone else knows the answer, please respond.
I was doing some research into functions and arguments, and on the Adobe Help Center page for functions and arguments it states that if a function is created using CFFUNCTION, then an 'empty slot' is automatically created for each argument, in case any of them are optional. However, if a function is created within CFSCRIPT, then no 'empty slots' are created, and if an argument is not supplied it will error out as undefined.
So, I'm curious as to why the two work differently from each other. If, within a CFSCRIPT environment, I want arguments to be optional I have to param them. But not in a CFFUNTION context.
Just curious.
V/r,
^ _ ^
