Skip to content

Idea: Labels and goto should be allowed to take parameters #3

@porky11

Description

@porky11

Simple usage to simplify return:

if some_condition
{
    // supplies 1 and 2, will return 2
    goto return 1, 2;
}
else
{
    // supplies 2 and 3, will return 6
    goto return 2, 3;
}

// labels might take multiple parameters
return (x: i32, y: i32):
    x * y

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions