Skip to content

Variadic parameters and spread operator #1358

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

For something like Choice, having variadic parameters is needed.

Desired solution

  • Add the vararg modifier for parameters again.
  • Add a spread operator to be able to pass a list to a variadic parameter.
  • Consider whether a function may have variadic, and optional parameters (and in which order).
  • Allow using the indexed access operator ([]) on variadic parameters.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions