IntrepidPursuits / swift-wisdom

A collection of additions to the Swift Standard Library created by Intrepid Pursuits developers
MIT License
39 stars 14 forks source link

Swift 5 Additional Fix - Mathable protocol #164

Closed tzm41 closed 5 years ago

tzm41 commented 5 years ago

The Mathable protocol's zero function conflicts with Swift 5's AdditiveArithmetic protocol. This PR removes the conflicting method, in favor of the built in one.

All the classes we conform to Mathable by default in our pod implementation also already conform to AdditiveArithmetic by Swift. Thus, the convenience methods implemented have the extra AdditiveArithmetic requirement now.