Skip to content

[FEATURE] Add support for Array Matching in switch cases #283

@Starexify

Description

@Starexify

Polymod should allow for arrays to be used in switch cases like in haxe:

Try haxe example:

Image

Issues

First issue with this is: the wildcard _ doesn't work and throws an error since _ is not found in the variables

So match 1/3/4 would give this error:

Image

Second: array definitions aren't working, might be because it isn't compared correctly:

Image

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