[swift-evolution] When to use argument labels (a new approach)
Dave Abrahams
dabrahams at apple.com
Thu Feb 4 13:09:24 CST 2016
> On Feb 4, 2016, at 10:06 AM, Charles Kissinger <crk at akkyra.com> wrote:
>
>>
>> On Feb 3, 2016, at 3:54 PM, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
>>
>>
>> on Wed Feb 03 2016, Charles Kissinger <swift-evolution at swift.org> wrote:
>>
>
>>> What I was getting at there is that
>>> ‘a.tracksHavingMediaTypeWaxCylinder’ doesn’t seem like a sentence to
>>> me. It is a clause, no doubt, but doesn’t seem to be an independent
>>> one.
>>
>> Agh, you're right. If only we used verbs in these cases... but that is
>> a whole nother discussion. I guess I'll have to say "clause" instead of
>> "sentence," which really sucks. Or I can say there's an implied "get"
>> at the front if there's no verb. bleah.
>
> The implied ‘get' approach doesn’t seem too bad to me. Would it suffice to stick with ‘sentence' and add the condition that if there is an implied ‘get' or ‘set' that would form a sentence, then Rule 1 still applies?
That's roughly what I was suggesting we might do. But is there such a thing as an implied "set?" I don't think so. Why bring that into it?
> I can’t think of any cases where people use an implied verb other than something in the 'get' family (find, acquire, etc.). Looking through my own code, the very concise set of rules in your original post work perfectly (IMO) with the exception of the “missing get” problem.
Thanks; nice to hear not *everybody* thinks they need to be completely reworked for reasons that I can't yet understand ;-)
Cheers,
-Dave
More information about the swift-evolution
mailing list