[swift-evolution] [swift-evolution-announce] [Review] SE-0067: Enhanced Floating Point Protocols

Chris Lattner clattner at apple.com
Tue Apr 26 15:13:56 CDT 2016

On Apr 26, 2016, at 12:28 PM, Xiaodi Wu <xiaodi.wu at gmail.com> wrote:
> If this design is a workaround for type checker limitations, then perhaps comparison method names are better prefixed with an underscore and/or using abbreviated terms-of-art (eq, lt, lte, etc.)? As Tony points out, it seems tragic to promote to an equal footing with `2.0 + 2.0 == 4.0` the alternative form `(2.0).adding(2.0).isEqual(to: 4.0)`.

I’d be open to considering that, but I’m definitely not an “API naming” guru.


More information about the swift-evolution mailing list