Run comptime
code when a type definition is annotated with a comptime
function
#5255
Labels
enhancement
New feature or request
Problem
Comptime code needs a way to inspect types with the goal of eventually generating its own impls.
Happy Case
Annotations on a type definition should call a comptime function of the same name with the type definition itself as an argument:
Once we support quoted top-level items (
Decl
s), such as trait impls, the goal is to havemy_comptime_fn
return aDecl
to be inserted at the call site.Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: