oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
9 stars 1 forks source link

No superfluous overloads #90

Closed oscbyspro closed 1 month ago

oscbyspro commented 1 month ago

(#71) added T and Nonzero<T> coefficient versions of BinaryInteger/power(_:coefficient:). I've since come to the conclusion that Guarantee types should only be used when they reduce the number of failure modes. In many cases, it means returning T instead of Optional<T> or Fallible<T>. The Nonzero<T> coefficients are micro-optimizations, so I'll remove them.