brendanzab / algebra

Abstract algebra for Rust (still very much a WIP!)
Apache License 2.0
60 stars 9 forks source link

use some macro tooling to reuse the same code for additive- and multiplicative- traits? #1

Open cartazio opened 10 years ago

cartazio commented 10 years ago

Just throwing an idea out there, because its really a shame that you cant write a trait once and have it work for both the + 0, * 1 versions of the ops on the same data type.