You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f5d7201 Refactor inference (Christian Lewe)
1b510f0 Implement fmt::Display for variable types (Christian Lewe)
705d2f6 Give names to variables (Christian Lewe)
576a62c Refactor types (Christian Lewe)
5807df7 Move inference to separate module (Christian Lewe)
6bebb38 Move TypeName conversion to jet module (Christian Lewe)
Pull request description:
This PR refactors the type system: Types are kept separate from type inference, identifiers were changed, and documentation was added. The big addition is that variables have `String`s as identifiers and variable types implement `Display` using that. As these types are variable, we cannot use the optimisation of storing formatted strings in the struct. Instead, we create a large string and replace occurrences of powers of two using relatively few allocations. This formatting can be used in a later PR to create helpful type errors.
ACKs for top commit:
apoelstra:
ACK f5d7201
Tree-SHA512: e7d2221ab46ab414302962c4c2ed8a335e4724ef2951e95ac4beb50d07aa489aea15cb5e8a46a8685c0ec4104a226cd604a8b7abd1e21c72a4ec64a223a294de
0 commit comments