<p dir="ltr">Ignore the above. Thought make was a method for some reason. Still, it would be possible if the parallel proposal for adding method references for getters were approved. </p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 16, 2015, 11:51 AM Dennis Lysenko &lt;<a href="mailto:dennis.s.lysenko@gmail.com">dennis.s.lysenko@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Perhaps cars.map(Car.make)? We already have method references, why define a new syntax? <br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 16, 2015, 11:18 AM Stephen Celis via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Wed, Dec 16, 2015 at 10:50 AM, Matthew Johnson via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>If we peel off just the contextual shorthand aspect of this proposal you could write:</div><div><br></div><div><div style="word-wrap:break-word"><div><span style="font-family:Menlo;font-size:11px;color:rgb(79,129,135)">cars</span><span style="font-family:Menlo;font-size:11px">.</span><span style="font-family:Menlo;font-size:11px;color:rgb(61,29,129)">map</span><span style="font-family:Menlo;font-size:11px">(.</span><span style="font-family:Menlo;font-size:11px;color:rgb(79,129,135)">make)</span></div><div><br></div></div></div><div>That does seem like a big win if it is feasible (doesn’t introduce ambiguity or cause other significant challenges in implementation).</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>The above creates ambiguity if there were a `map` function that takes a type with a static member `make`.</div><div><br></div><div>Alternatively:</div><div><br></div><div>    cars.map{.make}</div><div><br></div><div>Both create an additional meaning for dot abbreviation, though, which is confusing. I think I&#39;m &quot;-1&quot; on this proposal as is. The existing form is clearer and relatively short as is.<br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Stephen</div></div></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=8CZIdLciSFC-2BO5jF-2FiP8qN7dBFsgCUZ50wdTsolcRPcC9SO-2FShxV-2Fe3ZxbZ5PYG2SPFJuanXCzb-2FrkCLCoc0qe0lNurh0ji2hWJbWxJNWHvjKYOnfzQINTZRsM2EcYIvLih0Nhu3q3zHqoqL0Uqk-2BrkIG-2F4QdfnYL7VzGOCSpjc0wZouC2Azu5uFux3kp2fea6Hkse3swAgOsxr5lJXc3DSaRANdZoJPz-2FjKCbWLG4Y-3D" alt="" width="1" height="1" border="0" style="min-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">
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div></blockquote></div>