Extra Commas
#3
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.
Reply


Messages In This Thread
Extra Commas - by james2464 - 11-19-2022, 09:54 PM
RE: Extra Commas - by OldMoses - 11-19-2022, 10:14 PM
RE: Extra Commas - by CharlieJV - 11-19-2022, 10:21 PM
RE: Extra Commas - by CharlieJV - 11-19-2022, 10:19 PM
RE: Extra Commas - by james2464 - 11-19-2022, 10:32 PM
RE: Extra Commas - by OldMoses - 11-19-2022, 10:45 PM
RE: Extra Commas - by james2464 - 11-19-2022, 10:53 PM
RE: Extra Commas - by Pete - 11-20-2022, 06:31 AM



Users browsing this thread: 2 Guest(s)