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

Jordan Rose jordan_rose at apple.com
Thu Apr 21 22:01:26 CDT 2016


> On Apr 21, 2016, at 19:58, James Berry <jberry at rogueorbit.com> wrote:
> 
> 
>> On Apr 21, 2016, at 6:13 PM, Jordan Rose via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> On 'isLessThanOrEqual(to:)’: I agree with Xiaodi that the argument label is problematic here. I think the problem is that we have two prepositions that apply to the argument, and “pick the second one” leaves the base name feeling unbalanced. (Remember that we allow referring to a method by its basename alone when using it as a function value.)
> 
> Maybe: isLessThanOrEqualTo(value:) ??

At that point the argument label doesn’t add anything that isn’t already provided by the type.

"Otherwise, if the first argument forms part of a grammatical phrase, omit its label."

The “otherwise” comes after "When the first argument forms part of a prepositional phrase”, but in this case it forms part of two prepositional phrases.

Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160421/805f541c/attachment.html>


More information about the swift-evolution mailing list