It would be super nice to support this as it remains a major pain point of C++ (at least for myself); introspection of types being the main desired feature
reflect
reflect type-name
small example (syntax is made-up and not decided)
enum Foo<T> {
Var0: T
Var1: i32
}
function foo() -> String {
return match reflect Foo {
Enum(variants: vs) {
vs.first().name
}
_ => verify_not_reached()
}
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too