Skip to content

Allow TypeParams in TypeArgs. #2295

@zrho

Description

@zrho

TypeParam encodes static types while TypeArg encodes the values of static types. A static type itself is statically known information and so merits to be passed as an argument. This enables expressing the types of various constructions declaratively, improves consistency and shrinks the gap with hugr-model. In particular:

  • TypeArg should be able to embed TypeParam.
  • TypeParam should gain a variant TypeParam::Static that is the type of static types.
  • TypeParam should allow variables.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions