feos-org / feos

FeOs - A Framework for Equations of State and Classical Density Functional Theory
Other
110 stars 22 forks source link

Compile-time checked units #181

Closed prehner closed 1 year ago

prehner commented 1 year ago

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 :|