Skip to content

Scripting - Compiler - ADTs #24

@vurvdev

Description

@vurvdev

Want to add algebraic data types / sum types via enums.

Syntax

enum Foo {
    Bar { a: number },
    Baz { s: string },
    Qux,
}

These are available in most modern languages alongside pattern matching which should be done later on to match this (otherwise this would be pointless)

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