<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="">Interesting way to think of the ‘-&gt;’ operator.<div class=""><br class=""></div><div class="">Perhaps a &lt;-&gt; operator could represent this two-way mapping?</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 11 Jul 2016, at 20:29, Erica Sadun &lt;<a href="mailto:erica@ericasadun.com" class="">erica@ericasadun.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Jul 11, 2016, at 1:21 PM, James Froggatt via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class=""><div class=""><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks for letting me know this has been tried before, I'm actually in the process of drafting the proposal now.</div></div></blockquote><div class=""><br class=""></div>I'd hesitate to try to do something off-beat and "blend" them but it amuses me no end that the :-&gt; operator looks so very happy.</div><div class=""><br class=""></div><div class=""><span style="font-family: Palatino-Roman;" class="">subscript(_ position: Int) inout <b class="">:-&gt;</b> Element { get { … } set { … } }</span></div><div class=""><span style="font-family: Palatino-Roman;" class=""><br class=""></span></div><div class="">Nonetheless, I do want to point out that unlike properties, subscripts provide a mapping between a domain and a range so it feels more natural to me to use -&gt; than :.</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""></div></div></blockquote></div><br class=""></div></body></html>