Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 1.44 KB

todo.org

File metadata and controls

28 lines (25 loc) · 1.44 KB
Derived Units
Get macro working for these. Wait to see if rust-lang/rfcs#873 goes through, otherwise will have to be a syntax extension.
Index/IndexMut
Lifetime stuff that I need to figure out.
Impls
Include impls for references and not just pass-by-value.
Stable
Get dimensioned working with Rust stable.
make_units_adv!
Allow custom print function?
Dim
Decide on other traits to implement.
Macros
Investigate more macros for implementing functions.
Float
Implement for dimensionless. This requires num::traits::Zero and num::traits::One. The new versions of these in std::num are much more compatible with dimensioned, so implementation of Float will wait until it uses these. Otherwise, I need to implement Mul and Add for Dimensionless in a type-preserving way, so I will have to use default trait impls to differentiate these from the Mul and Add impls for Dimension.
constant initialization value
Once associated constants hit, use std::num::One.
Numbers
Compare shoggoth to peano. Shoggoth should be faster, and can count higher. Can it divide?
Numerics
If and when Rust supports numerics and arithmetic in type signatures, switch to using them. This will likely correspond to a version 2.0 of dimensioned.