Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile-time checked units #181

Merged
merged 14 commits into from
Aug 7, 2023
Merged

Compile-time checked units #181

merged 14 commits into from
Aug 7, 2023

Conversation

prehner
Copy link
Contributor

@prehner prehner commented Jul 31, 2023

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
14 checks passed
@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