-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
If the function signature contains required and optional arguments, Igor Pro does allow the following four cases of comma placement:
Function Case1(string reqArg, [string optArg])Function Case2(string reqArg[, string optArg])Function Case3(string reqArg [string optArg])Function Case4(string reqArg, [, string optArg])I would allow only case 1 as good coding style and also looks cleaner.
Impact
I have seen case 2 and case 3 in many different repositories, so I wouldn't report this to WM for compatibility reasons.
t-b
Metadata
Metadata
Assignees
Labels
No labels