Skip to content

use kinds instead of Type #99

Description

@TheLazyCat00

every type is of a value and kind. we can create kinds so that we can say what we expect the type to have:

kind Arithmetic
T +(x T Arithmetic, y T Arithmetic) {}
T ~(x T Arithmetic) {}

type Vector2<T Arithmetic> = struct {
  x T;
  y T;
}

notice how Arithmetic replaces Type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions