refactor(hugrv2)!: Rename Terms to clarify (runtime) Types from static parameter Kinds#3019
refactor(hugrv2)!: Rename Terms to clarify (runtime) Types from static parameter Kinds#3019
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## acl/boundless_type #3019 +/- ##
======================================================
- Coverage 81.34% 81.34% -0.01%
======================================================
Files 239 239
Lines 45285 45284 -1
Branches 39053 39052 -1
======================================================
- Hits 36837 36836 -1
Misses 6446 6446
Partials 2002 2002
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merging this PR will improve performance by 17.58%
Performance Changes
Comparing Footnotes
|
2dec804 to
b45e61f
Compare
|
This PR contains breaking changes to the public Rust API. cargo-semver-checks summary |
45f1367 to
6ea5e65
Compare
cqc-alec
left a comment
There was a problem hiding this comment.
Thanks!
Should we also change TermTypeError::TypeMismatch { term, type_} to TermTypeError::KindMismatch {value, kind}? I guess we should??
Yes I guess we should do that as well.
[Note: this will textually conflict with #3022, will have to merge whichever is approved second but I think should b straightforward.]
Using
Typeto mean a static parameter (that accepts a static Term argument) is confusing; instead keep Type as meaning a type of runtime valuesTerm::RuntimeTypebecomesTerm::TypeKindTerm::XXXTypebecomesTerm:::XXXKind(e.g.StringType->StringKind,ListType->ListKind)Term::RuntimeXXXbecomesTerm::XXXType(e.g.Term::RuntimeExtension->Term::ExtensionType)check_term_type->check_term_kindQuestion Should we also change
TermTypeError::TypeMismatch { term, type_}toTermTypeError::KindMismatch {value, kind}? I guess we should??BREAKING CHANGE: many renames of variants of Term; ...Types are now Kinds, Runtime... are now Types. Also check_term_type is now check_term_kind