<div style="white-space:pre-wrap">I'm saying something else. The preposition that goes with "less" is "than," while "to" goes only with "equal." By making "to" a parameter label you've got {less than or equal} to, which is inelegant because the label cannot be distributed to both parts--i.e. one cannot say "less than to or equal to."<br><br>Put another way, I could just as well rewrite the method as `equalToOrLess(than:)`. Now, the parameter is labeled "than" instead of "to," yet the parameter serves the same purpose. Thus, I argue that the proposed method name may meet the letter of the Swift guidelines but is awkward.<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 20, 2016 at 14:44 Dave Abrahams via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
on Tue Apr 19 2016, Xiaodi Wu <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
<br>
> * What is your evaluation of the proposal?<br>
><br>
> +1 in intent. Specifics require further refinement. For example:<br>
><br>
> Internal inconsistencies in capitalization:<br>
> * `signalingNaN` but `isSignalingNan` and `isNan`<br>
><br>
> Parameter labels, or whatever they're called now, do not reflect newly<br>
> adopted Swift syntax in SE-0046:<br>
> * `static func maximum(x: Self, _ y: Self) -> Self` should be `static<br>
> func maximum(_ x: Self, _ y: Self) -> Self`, etc.<br>
><br>
> Infelicitous use of prepositions to conform superficially to new<br>
> naming guidelines:<br>
> * `isEqual(to:)` is fine, but for consistency there's<br>
> `isLessThanOrEqual(to:)`, which is not fine, because the preposition<br>
> "to" applies only to "equal" and not to "less than"<br>
<br>
That seems like a huge stretch to me. Are you claiming it's wrong to<br>
say “x is less than or equal to y,” or are you saying something else?<br>
<br>
--<br>
Dave<br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>