Skip to content

Argument overloading #7

Open
Open
@garritfra

Description

@garritfra

Functions should be able to take any number of arguments by adding a varargs operator. It should look like this:

fn print(args: ...any) {
   for argument in args {
        println(argument)    
    }
}

The arguments should be accessible like a regular array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions