<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=""><div class="">I'm routinely proven wrong, but if $ was allowed to be either an operator or an identifier, it seems to me that `a &lt;$&gt; b` could produce two different and (potentially) valid ASTs depending only on whether &lt;$&gt; exists as an operator. Some people don't like operator overloading, imagine if you told them that they can't even be sure that what they're looking at is an operator at all.</div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande';  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Félix</span>
</div>

<br class=""><div><blockquote type="cite" class=""><div class="">Le 3 janv. 2016 à 21:02:40, Jacob Bandes-Storch via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Is it considered infeasible for any characters to be allowed in both identifiers and operators?<div class="gmail_extra">
<br class=""><div class="gmail_quote">On Sun, Jan 3, 2016 at 1:23 PM, Chris Lattner 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=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br class="">
&gt; On Jan 2, 2016, at 11:53 PM, Brent Royal-Gordon via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt;&gt; Swift currently does not allow operators to use $ - I assume because the grammar reserves it in one place: `implicit-parameter-name`.&nbsp; I don't see why an entire class of identifiers has been eliminated, so I propose $ instead be reclassified as an `operator-character` so it can be used mixed in with other such characters, but prevents the introduction of `$Identifier`-style declarations that might conflict with implicit parameters.<br class="">
&gt;<br class="">
&gt; I believe the reason you don't see any other $ variables is that they're reserved for the debugger and REPL.<br class="">
&gt;<br class="">
&gt;&nbsp; &nbsp; &nbsp; &nbsp;brent@Brents-MacBook-Pro ~/D/Code&gt; swift<br class="">
&gt;&nbsp; &nbsp; &nbsp; &nbsp;Welcome to Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81). Type :help for assistance.<br class="">
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1&gt; "foo"<br class="">
&gt;&nbsp; &nbsp; &nbsp; &nbsp;$R0: String = "foo"<br class="">
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2&gt; print($R0)<br class="">
&gt;&nbsp; &nbsp; &nbsp; &nbsp;foo<br class="">
<br class="">
</span>Right.&nbsp; That said, our current operator space (particularly the unicode segments covered) is not super well considered.&nbsp; It would be great for someone to take a more systematic pass over them to rationalize things.<br class="">
<br class="">
-Chris<br class="">
<div class="HOEnZb"><div class="h5">_______________________________________________<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" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="">
</div></div></blockquote></div><br class=""></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=iRI3beHTe3UxYAHTlV3lA38zIPfHMhyuRzgTmGKV6k5LPG17W-2BjSQM-2F0TVqZpS8FL3-2FSisz-2BB6Z8EnrxHxTGd0TE2E9sL7Q49MNGhaQOjlIMtqg2pH67F1flQaRfyWAY5dQJBgbjOcLhcqDb0dCXfcRUfhcTZz364kNRHshQn8MBsd3RhzJL4y438Ie4DxNVNFIY5lkF-2BBysIZckJwY-2F5lFtcPz7lDMGICkpds0RtEc-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=""></div></blockquote></div><br class=""></body></html>