<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br>Sent from my iPhone</div><div><br>On Jul 10, 2016, at 11:24 PM, Austin Zheng <<a href="mailto:austinzheng@gmail.com">austinzheng@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 10, 2016, at 11:16 PM, David Owens II <<a href="mailto:david@owensd.io" class="">david@owensd.io</a>> wrote:</div><div class=""><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-variant-ligatures: no-common-ligatures;">Unless you really want to try and get parameter name syntax changed to match your example:</span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-converted-space"> </span>doResizeB(image:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, completed(original:resized:): (</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) -><span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);">Void</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)</span></div></span></div></div></blockquote><div><br class=""></div><div>This is what I had in mind. You would be able to name a value of function type (whether it be a local variable, function argument, or property) with either a simple name (in which case there would be no labels at all), or a compound name with as many semicolons as arguments. Would you have any objection to this?</div></div></div></blockquote><div><br></div><div>Would this compound name also affect how functions are referenced? I would assume no. </div><div><br></div><div>Also, how do typealiases work then? It's still desirable to not have to couple the labels there with the labels within the function declaration. So if:</div><div><br></div><div>typealias MyCallback = (original: Image, resized: Image) -> Void</div><div><br></div><div>Meant that these were equivalent:</div><div><br></div><div><div class=""><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures; background-color: rgba(255, 255, 255, 0);"><div class="" style="margin: 0px; line-height: normal;"><font color="#000000"><span class="" style="font-variant-ligatures: no-common-ligatures;">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> doResizeB(image: </span><span class="" style="font-variant-ligatures: no-common-ligatures;">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, completed(original:resized:): (</span><span class="" style="font-variant-ligatures: no-common-ligatures;">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures;">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">Void</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)</span></font></div></span></div></div></div><div><br></div><div><div class=""><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures; background-color: rgba(255, 255, 255, 0);"><div class="" style="margin: 0px; line-height: normal;"><font color="#000000"><span class="" style="font-variant-ligatures: no-common-ligatures;">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> doResizeB(image: </span><span class="" style="font-variant-ligatures: no-common-ligatures;">Image</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, completed: MyCallback</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)</span></font></div></span></div></div></div><div><br></div><div>I probably wouldn't have any real objection. </div><div><br></div><div>-David</div></body></html>