Forum Discussion
ov2015
10 years agoVisitor
"belltown" wrote:
It doesn't help that the BrightScript Language Reference does not document the syntax for optional function parameters. It mentions that optional parameters may be declared, but the syntax definition for the FUNCTION statement doesn't depict an optional parameter declaration with a default value. It does show an example with a list of function statements, two of which have optional parameters, but with no explanation that that's what they are. It's one of those things you're just supposed to know, I guess.
😄 Yes I do agree with ROKU not having proper documentation. I have faced few of those problems myself.
I had a PHP background so just tried if it works, otherwise will have been searching in those documents for hours and waiting for some one to reply.