Skip to content

Conversation

@kubamracek
Copy link
Contributor

SE-0492 declared that constant expressions should support metatypes (of non-generic, non-resilient types). This is a sketch of implementing that support. I'm looking for feedback on whether this is the right approach, and whether we actually want to support this (emitting existential erasure of metatypes into IR constants).

@kubamracek kubamracek requested a review from DougGregor October 26, 2025 05:04
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach looks reasonable to me. I do really like having this feature, but it's a reasonable basis for any kind of "type registry" in the language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants