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

Brent Royal-Gordon brent at architechies.com
Tue Apr 26 08:45:03 CDT 2016

> isLessThanOrEqual(to:) --> isLessThanOrEqualTo(_:). I'm still not totally convinced that this is an improvement, so I'd love to hear further suggestions on how to handle this case.

One possibility would be `isNoGreater(than:)`, which neatly sidesteps the problem. However, given the bizarreness of NaNs, you could argue whether it's actually accurate. (I would say it is, while `isNotGreater(than:)` would not be correct name, but admittedly that's a slight stretch.)

I'll comment on the rest another time.

Brent Royal-Gordon

More information about the swift-evolution mailing list