On Mon, Apr 25, 2016 at 1:32 PM, Stephen Canon via swift-evolution < [email protected]> wrote:
> > > On Apr 23, 2016, at 8:53 PM, Brent Royal-Gordon via swift-evolution < > [email protected]> wrote: > >> func isEqual(to other: Self) -> Bool > >> func isLess(than other: Self) -> Bool > >> func isLessThanOrEqual(to other: Self) -> Bool > > > > I'm still not sure why these are methods instead of operators. > > > > (I also share others' concern about the argument label on > `isLessThanOrEqual`.) > > There’s lots of concern, and very few suggestions of anything better. The > only thing that seems workable is maybe `isLessThanOrEqualTo(_:)`, which is > inconsistent with the other comparisons, but maybe that’s the right thing > to do anyway. > My vote is with using operators, and perhaps actually introducing `<=>` for total order as suggested elsewhere. Why invent method names for standard operators?
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
