11-19-2022, 10:19 PM
G'day,
Some statements have 1 tail-end parameter that is optional, so the parameter and comma before the parameter can be excluded when not needed/applicable.
When there are multiple optional parameters at the tail-end, and only the last one is not needed, same thing. Just exclude the last parameter and related comma.
The same "process" continues iteratively until all optional parameters are excluded when not needed/applicable.
But things get a little messy when "middling" optional parameters are not needed, but tail-end optional parameters are needed.
To not confuse a compiler/interpreter, the positions of those "middling" optional parameters are identified by the commas and the space between the commas. That way it can tell that the last parameter is for this/or/that, because it can figure out the position of it by counting those commas.
Something like that.
Some statements have 1 tail-end parameter that is optional, so the parameter and comma before the parameter can be excluded when not needed/applicable.
When there are multiple optional parameters at the tail-end, and only the last one is not needed, same thing. Just exclude the last parameter and related comma.
The same "process" continues iteratively until all optional parameters are excluded when not needed/applicable.
But things get a little messy when "middling" optional parameters are not needed, but tail-end optional parameters are needed.
To not confuse a compiler/interpreter, the positions of those "middling" optional parameters are identified by the commas and the space between the commas. That way it can tell that the last parameter is for this/or/that, because it can figure out the position of it by counting those commas.
Something like that.