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

First-class types #28

Open
jonhue opened this issue Mar 21, 2021 · 0 comments
Open

First-class types #28

jonhue opened this issue Mar 21, 2021 · 0 comments
Assignees
Labels
discussion Has not been decided upon yet proposal New proposal for the language spec
Milestone

Comments

@jonhue
Copy link
Member

jonhue commented Mar 21, 2021

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
@jonhue jonhue added discussion Has not been decided upon yet proposal New proposal for the language spec labels Mar 21, 2021
@jonhue jonhue added this to the 0.2.0 milestone Mar 21, 2021
@jonhue jonhue self-assigned this Mar 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion Has not been decided upon yet proposal New proposal for the language spec
Projects
None yet
Development

No branches or pull requests

1 participant