<div dir="ltr"><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"><div><span><blockquote type="cite"><div><div style="word-wrap:break-word"><div><pre style="word-wrap:break-word;white-space:pre-wrap"><blockquote type="cite">-  func respondWith(data: Data)
+  func respond(data data: Data)</blockquote></pre></div><div>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><br></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><br></div><div>Can I tell, at a call site, whether `respond(data: someData)` is responding with someData, or responding to someData?</div><div><br></div><div>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><br></div><div>If I see `respondWith(someData)` or `respondWith(data: someData)` or `respondWithData(someData)`, it&#39;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><br></div></div></div></div>