Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

First-class types #28

@jonhue

Description

@jonhue

Investigate making types first-class citizens. This would involve

  • adding a Type primitive type
  • removing the type keyword (or using it solely for defining datatypes with constructors)
  • perhaps removing all separation between terms, patterns, and types

Ensure

  • distinct features are still available, like:
    • default arguments for patterns
    • rest patterns
    • (type annotations within patterns)
    • certain type operators like conditional types, access types, keyof, typeof, optional types

Metadata

Metadata

Assignees

Labels

discussionHas not been decided upon yetproposalNew proposal for the language spec

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions