rust-num / num-rational

Generic Rational numbers for Rust
Apache License 2.0
144 stars 51 forks source link

Implement `Default` #101

Closed Kyuuhachi closed 2 years ago

Kyuuhachi commented 2 years ago

For the builtin numeric types (both signed, unsigned, and floating), Default::default is defined to zero. Would it make sense to do the same here? Would be convenient for deriving structs that contain rationals.

cuviper commented 2 years ago

Sure, that sounds fine.