Skip to content

Comma placement in function signatures #34

@Garados007

Description

@Garados007

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions