<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 19, 2015, at 1:37 AM, Rob Mayoff via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">When you access a static member of a type using the dot shortcut, Swift evaluates the expression immediately.<div class=""><br class=""></div><div class="">Are you proposing that when you access a member of an instance, Swift generate a closure?</div><div class=""><br class=""></div><div class="">Or are you proposing that Swift generate a closure or not depending on how the expression's value is to be used?</div></div></div></blockquote><div><br class=""></div><div>I was thinking of it more in terms of binding the non-self arguments, but either way is effectively the same. &nbsp;This would be necessary in all cases, although in the case of property getters and nullary methods there would no arguments to bind.</div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">Either way seems inconsistent with the static member situation, and like a potential source of confusion: not everyone uses the One True Convention™ of .Capitalized .Static .Members and .lowercase .instance .members, so one cannot reliably deduce the outcome based on the case of the character after the dot.</div></div></blockquote><div><br class=""></div><div>You can easily deduce it by the type context which you need to know to understand the code anyway. &nbsp;As capitalization is not enforced by the language it is not reasonable to deduce anything based on that.</div><div><br class=""></div><div>If you think it could potentially be confusing that is a reasonable position.</div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">On Thu, Dec 17, 2015 at 9:27 PM, Matthew Johnson via swift-evolution <span dir="ltr" class="">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt;</span> wrote:<br class=""></div><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">anArray.map{$0.anInstanceMethod()}<br class="">
<br class="">
becomes:<br class="">
<br class="">
anArray.map(.anInstanceMethod())<br class=""></blockquote></div></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=eLFMrKDT8iBxZ-2Fbnk-2BZqvSchNN-2FvYXdceA0T7VxwkAdFDC5F-2FZOhg-2FPQl6-2BLtXrexwaJMEXNs3EcOikjKvgDtpDRXEAEVuMMTTa89ttDKzBKC55wkXkZeWDpWHcwsWesqtcj0TcWd5brQbS02oR3lm0M9FQ8p1EOCDj5zxsuKpmPegpivf-2FEeJbYe2m4Z16-2BgHfl9A2edkXSAPIhSXX9kxZxuElgeMGBFvmr-2FsO2Mkk-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></blockquote></div><br class=""></body></html>