Types without structural equality in const arguments #47
Labels
A-generic-exprs
Generic const expressions
A-unification
Unifying constants in the type system
C-design-docs
Category: This is part of our design documentation
K-behavior
Document Kind: regarding user visible behavior
P-necessary
Priority: will be needed at some point
S-active
What is this
This is a design document for const generics. Any discussions about its content should be on zulip. The conclusions of these discussions should then be edited back into this issue. Please do not post any comments directly in this issue.
Content
When building an abstract representation for a constant, we have to decide on how to deal with variables/temporaries whose type does not have structural equality (#29). We definitely cannot partially evaluate constants up to that point.
Examples
We probably should deal with this by emitting an error during abstract const building when encountering a value which does not have structural equality.
The text was updated successfully, but these errors were encountered: