Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma placement in function signatures #34

Open
Garados007 opened this issue Jul 28, 2023 · 0 comments
Open

Comma placement in function signatures #34

Garados007 opened this issue Jul 28, 2023 · 0 comments

Comments

@Garados007
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant