<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On 27 Jan 2016, at 21:48, Rob Mayoff via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><span class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><pre style="word-wrap:break-word;white-space:pre-wrap" class=""><blockquote type="cite" class="">- func respondWith(data: Data)
+ func respond(data data: Data)</blockquote></pre></div><div class="">This one is unusual. I don’t mind `respond(data: …)`, but generally there’s a word to the right of “with”, and here the “with” was just to imply the argument without naming it.</div></div></div></blockquote><div class=""><br class=""></div></span>The original ObjC method name was “respondWithData:”. “Data” restates type info, so SE-0023 stripped it off; this transformation makes it the first argument label.</div></div></blockquote><div class=""><br class=""></div><div class="">Can I tell, at a call site, whether `respond(data: someData)` is responding with someData, or responding to someData?</div><div class=""><br class=""></div><div class="">That is, can I tell whether someData is the response, or instead is something from the request that the receiver will use to compute the response?</div><div class=""><br class=""></div><div class="">If I see `respondWith(someData)` or `respondWith(data: someData)` or `respondWithData(someData)`, it's clear to me that someData is the response, while a hypothetical call `respondTo(someData)` would tell me that someData is the input to the response-computing algorithm.</div></div></div></div></div></blockquote><br class=""></div><div>I’d like to reiterate that my preference for cases like these would be:</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>respond(withData data: Data)</div><div><br class=""></div><div>This way the action (function name) is still simplified to respond, but the sentence structure remains for clarity, which I still think is the best of both worlds.</div></body></html>