Skip to content

support * in tuples #1791

Open
Open
@HoneyryderChuck

Description

@HoneyryderChuck

I've found that I can't type a certain type of code I maintain, where it'd make sense to do so.

operation = ["+"]
operation << 1
operation << 2

I'd like to type this as a tuple of a given type at the head, and variable values of same type at the tail, smth like operation: [String, *Integer], but the parser does not support that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions