<div dir="ltr">I&#39;ve been wanting to ask about how the Swift team decided to split the Unicode characters between identifier characters and operator characters for over a year now.<div>Playing cards and dominoes can be used as identifier characters. Chess pieces are operator characters. <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:17px;background-color:rgb(249,249,249)">🂡 </span><a href="https://en.wikipedia.org/wiki/%E2%99%94" title="♔" class="" style="color:rgb(11,0,128);background-image:none;font-family:sans-serif;text-align:center;text-decoration:none!important">♔</a> <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:large;text-align:center">🁄 </span>could be a legal expression in Swift. I don&#39;t know why.</div><div>There&#39;s a proposal in swift-evolution right now for &amp;&amp; and || to be replaced by &#39;and&#39; and &#39;or&#39;. The unicode rules mean that it&#39;s not permitted to create a custom operator &#39;and&#39; - unless you spell it in Braille. (Technically Unicode doesn&#39;t map Braille symbols to letters, but it&#39;s true as far as it goes).</div><div>Care to elaborate on the rationale for this? :)</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 12:19 AM, Chris Lattner 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><span class=""><div>On Dec 17, 2015, at 4:15 PM, Greg Parker via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br></span><div><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On Dec 17, 2015, at 12:14 PM, Ethan Tira-Thompson via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><div><div style="word-wrap:break-word"><div><br></div>I wanted to use ‘·’ as a dot-product operator, but it’s not currently defined as an operator character. (<a>rdar://problem/23930008</a> suggested I come here for comment.)<div><br><div>Note that dot operator (⋅, U+22C5) is already available for operators and semantically appropriate, but Mac users can conveniently type option-shift-9 to get the middle dot which is a nice feature and consequently it’s more well-known.  FWIW, we have U+00B6 (¶) already defined as an operator, this would extend its range by one.</div></div></div></div></blockquote><br></div></span><div>IHNTA, IJWTS &quot;🐶 is an identifier but ⚽︎ is an operator, according to Swift&#39;s current rules.”</div></div></div></blockquote></div><br><div>I’m not sure what the initialisicms stand for, but any proposal that breaks:</div><div><br></div><div><span style="white-space:pre-wrap">        </span>let 🐶🐮 = &quot;moof&quot;</div><div><br></div><div>will not be tolerated.  :-) :-)</div><div><br></div><div>-Chris</div><div><br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2F-2BoYEebT9nJ6Tn1eM4dmwhL8-2BwH5ixcf4jim0iIuN5wyqfoIM32StzWmnDNDSvBNrdrBhxMJ0UMGt9KCp-2FYIcXQCmRyb9WZPiu-2F8u8aeS78tvAxWQase6wQrhTRvJf9kiLPxzxR-2F3UQGbWNbzepb-2BImk3uySyu6rDhFBRoH6mvoXmrTSYObTtKT2wdNhCe2AwKmfFAQ1M8Gnau8ptsUFqEalaP4WtxUhqYrfxacfu2w-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">
</div>
<br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">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>
<br></blockquote></div><br></div>