Skip to content

Compile-time checked units#181

Merged
prehner merged 14 commits into
mainfrom
typenum_units
Aug 7, 2023
Merged

Compile-time checked units#181
prehner merged 14 commits into
mainfrom
typenum_units

Conversation

@prehner

@prehner prehner commented Jul 31, 2023

Copy link
Copy Markdown
Contributor

The PR uses the typenum create to define quantity types that are checked by the compiler. With this addition many Results or unwraps can be eliminated and the error messages in Python should become more straightforward, because the units are directly checked at the Python/Rust interface.

Error messages in Rust are pretty cryptic though :|

@prehner
prehner marked this pull request as ready for review August 7, 2023 18:28
@prehner
prehner merged commit abce022 into main Aug 7, 2023
@prehner
prehner deleted the typenum_units branch August 7, 2023 19:45
g-bauer pushed a commit that referenced this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants