Skip to content

self type should be "just a type" #2372

@nikomatsakis

Description

@nikomatsakis

Right now the self type is a type constructor / higher-kinded type, but it is the only part of our type system like that and so is not terribly useful. We should change it be like other type parameters---but a bit special, since it is implicitly defined---and maybe later add higher-kinded types in a more disciplined way.

Note: I have a patch that does this, it is in its final testing phases.

Metadata

Metadata

Assignees

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