[swift-evolution] [Proposal draft] Enhanced floating-point protocols
erica at ericasadun.com
Thu Apr 14 20:29:20 CDT 2016
* I do use % for floating point but not as much as I first thought before I started searching through my code after reading your e-mail. But when I do use it, it's nice to have a really familiar symbol rather than a big word. What were the ways that it was used incorrectly? Do you have some examples?
* I don't quite get how equatable is going to work. Do you mind explaining that in more detail?
> On Apr 14, 2016, at 5:55 PM, Stephen Canon via swift-evolution <swift-evolution at swift.org> wrote:
> Impact on existing code
> The % operator is no longer available for FloatingPoint types. We don't believe that it was widely used correctly, and the operation is still available via the formTruncatingRemainder method for people who need it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution