<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">By the way, I am okay with the syntax in the proposal too. &nbsp;I'm just brainstorming so that we can look at all the options. &nbsp;I am guessing the authors (David Smith, Michael LeHew and Joe Groff) probably went through this process already and settled with the simpler notation. &nbsp;:-)<div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 22, 2017, at 4:51 PM, Ricardo Parada 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=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yes, I was about to ask the same. &nbsp;<div class=""><br class=""></div><div class="">It seems like all the sigil characters are taken. &nbsp;This is one of the reasons why I did not object to the non-sigil notation originally proposed despite the ambiguity with static properties and instance properties with the same name. &nbsp;But using a sigil seems like it can unify method references and key path references.<div class=""><br class=""></div><div class="">Is the single quote taken? &nbsp;For example:<div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">let path =&nbsp;'<font color="#ff6a00" class="">Bag.things[0].name</font></font></div><div class=""><span class="" style="font-family: Menlo;">bag[path]&nbsp;</span></div><div class=""><font face="Menlo" class="">bag['</font><span class=""><font color="#ff6a00" face="Menlo" class="">Bag.things[0].name</font></span><span class="" style="font-family: Menlo;">]</span></div><div class=""><font face="Menlo" class="">bag['<font color="#ff6a00" class="">.</font></font><span class=""><font color="#ff6a00" face="Menlo" class="">things[0].name</font></span><span class="" style="font-family: Menlo;">]</span></div><div class=""><font face="Menlo" class="">bag.things[0]['</font><span style="color: rgb(255, 106, 0); font-family: Menlo;" class="">.</span><span class=""><font color="#ff6a00" face="Menlo" class="">name</font></span><span class="" style="font-family: Menlo;">]</span></div><div class=""><font face="Menlo" class="">bag.things[0]['</font><span class=""><font class="" color="#ff6a00" face="Menlo">Thing.</font><font face="Menlo" class=""><font color="#ff6a00" class="">name</font>]</font></span></div></div><div class=""><span class=""><font face="Menlo" class=""><br class=""></font></span></div><div class="">And the examples on the proposal would become:</div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><div class="" style="font-family: Menlo;">'<font color="#ff6a00" class="">Person.friends[0].name</font></div><div class="" style="font-family: Menlo;">luke['<font color="#ff6a00" class="">.friends[0].name</font>]</div><div class="" style="font-family: Menlo;">luke.friends[0]['<font color="#ff6a00" class="">.name</font>]</div><div style="font-family: Menlo;" class=""><br class=""></div><div class="">If we were to put it between root and the path then it would look like this:</div><div style="font-family: Menlo;" class=""><br class=""></div></div><div class=""><div class=""><div class=""><font face="Menlo" class="">let path =&nbsp;<font color="#ff6a00" class="">Bag</font>'<font color="#ff6a00" class="">things[0].name</font></font></div><div class=""><span class="" style="font-family: Menlo;">bag[path]&nbsp;</span></div><div class=""><font face="Menlo" class="">bag[</font><span class=""><font color="#ff6a00" face="Menlo" class="">Bag</font><span style="font-family: Menlo;" class="">'</span><font color="#ff6a00" face="Menlo" class="">things[0].name</font></span><span class="" style="font-family: Menlo;">]</span></div><div class=""><font face="Menlo" class="">bag['</font><span class=""><font color="#ff6a00" face="Menlo" class="">things[0].name</font></span><span class="" style="font-family: Menlo;">]</span></div><div class=""><font face="Menlo" class="">bag.things[0]['</font><span class=""><font color="#ff6a00" face="Menlo" class="">name</font></span><span class="" style="font-family: Menlo;">]</span></div><div class=""><font face="Menlo" class="">bag.things[0][</font><span class=""><font class="" color="#ff6a00" face="Menlo">Thing</font><span style="font-family: Menlo;" class="">'</span><font face="Menlo" class=""><font color="#ff6a00" class="">name</font>]</font></span></div></div></div><div class=""><span class=""><font face="Menlo" class=""><br class=""></font></span></div><div class=""><br class=""></div><div class="">Right now the compiler tells me that it found an "<font color="#ff2600" class="">unterminated string literal</font>". &nbsp;</div><div class=""><br class=""></div><div class="">When I add the closing single quote then it tells me "<font color="#ff2600" class="">single-quoted string literal found, use '"' instead</font>"</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 22, 2017, at 3:16 PM, Brent Royal-Gordon 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=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 22, 2017, at 9:00 AM, Vladimir.S 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=""><span 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; float: none; display: inline !important;" class="">bag[#path]</span><br 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;" class=""></div></blockquote><br class=""></div><div class="">What do these do?</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>bag[#file]</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>bag[#line]</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>bag[#function]</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>// etc.</div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-spacing: 0px;"><div class=""><div style="font-size: 12px; " class="">--&nbsp;</div><div style="font-size: 12px; " class="">Brent Royal-Gordon</div><div style="font-size: 12px; " class="">Architechies</div></div></span>

</div>
<br class=""></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></div>_______________________________________________<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=""></div></blockquote></div><br class=""></div></body></html>