You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finite remainders are always well-behaved. 3/4 infinite remainder cases are well-behaved. But, infinite-by-finite remainders are not because infinite-by-finite division is an error (reinterpreted as signed). BinaryInteger/remainder(_:) should, therefore, return an error indicator. I can add a FiniteInteger/remainder(_:) that never fails for the sake of convenience.
The text was updated successfully, but these errors were encountered:
This rewrite introduces safe division protocol requirements with proper division semantics. I'm sure these methods can be derived from unsafe requirements, but this is a good place to start. I'll may consider unsafe requirements if the overhead of safety cannot be optimized away. Something, something, sufficiently smart compiler.
Finite remainders are always well-behaved. 3/4 infinite remainder cases are well-behaved. But, infinite-by-finite remainders are not because infinite-by-finite division is an error (reinterpreted as signed). BinaryInteger/remainder(_:) should, therefore, return an error indicator. I can add a FiniteInteger/remainder(_:) that never fails for the sake of convenience.
The text was updated successfully, but these errors were encountered: