Closed Logarithmus closed 2 years ago
Using const generic approach like here https://docs.rs/nalgebra/latest/nalgebra/base/dimension/struct.Const.html
Shorten rustc
compilation errors for const generics:
Closed by d0b41eca0a12681a8982fb669ba678a4bd814aaf
Implement some sort of downcasting facility to shorten compile errors. Now
P4
is expanded toPInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>
. It would be nice to havestruct Plus4
, which would be converted toPInt<...>
for computation & then converted back to another strong alias.Implementation will likely involve fighting orphan rule & using macros.