Skip to content

Feature request: first-class labels for extensible rows / koka #2509

Closed
@ziriax

Description

@ziriax

It would be very nice have real extensible row polymorphism in Typescript, that also works with generics.

So having type constructions that allow adding and removing 'keys' aka labels.

I tried adding labels using interfaces, but that does not work, since you cannot extend from a generic type?

interface IWithName<T> extends T {
   name: string
}

See Microsoft's research language Koka and also this old paper, both from Daan Leijen

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions