Closed modulovalue closed 5 years ago
Rationals should have a const constructor and https://github.com/dart-lang/sdk/issues/33893 is preventing that from happening. Is that observation correct?
That's not the only issue. In Rational._normalized there's a check to ensure GCD of numerator and denominator is 1. This will prevent Rational to be const.
Rational._normalized
1
Rationals should have a const constructor and https://github.com/dart-lang/sdk/issues/33893 is preventing that from happening. Is that observation correct?