I've definitely wanted to use some unavailable characters. <span></span>I've also wanted to add a postfix Greek question mark operator to my friend's code, but that's a different issue. <br><br>On Friday, 18 December 2015, Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> 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"><div>On Dec 17, 2015, at 2:35 PM, Radosław Pietruszewski via swift-evolution <<a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a>> wrote:</div><br><div><div style="word-wrap:break-word"><div>Although I would personally never, ever want to do this, I see no reason why this character shouldn’t be allowed for an operator.</div><div><br></div><div>The question is: if we are to touch this are and extend the Unicode ranges of characters allowed for operators, what else is missing? A wider proposal to fill in the blanks would probably make sense.</div></div></div></blockquote><div><br></div><div>Right. I also agree that adding this specific character makes sense, and it is trivial to extend the set of characters supported:</div><div><a href="https://github.com/apple/swift/blob/master/include/swift/AST/Identifier.h#L90" target="_blank">https://github.com/apple/swift/blob/master/include/swift/AST/Identifier.h#L90</a></div><div><br></div><div>The question is: what is the right set of characters? It would be great for someone familiar with this space to dive in and try to rationalize it.</div><div><br></div><div>-Chris</div><div><br></div><div><br></div><br><blockquote type="cite"><div><div style="word-wrap:break-word"><div>
<div>— Radek</div>
</div>
<br><div><blockquote type="cite"><div>On 17 Dec 2015, at 21:14, Ethan Tira-Thompson via swift-evolution <<a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a>> wrote:</div><br><div><div style="word-wrap:break-word"><div>Hi swift-evolution,</div><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><br></div><div>Thoughts?</div><div><br></div><div>Thanks,</div><div> -Ethan</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=4hhvaxvZNsLrnZM9llg93kxoqfFYC8lhv8HAehOIDqKPWFnfNDOOU4qvJ-2FzFH06fdu9vCWebEWRR0FVrA5K9G93kvhyRPMrJoaIxttBQQ7Y2tYlmnGQnbsRAL7Ql3Ep6zNfzLsSUX1gFaXjxZKdJY0Q5cohFxXNAq5qAJ-2F-2F-2FzSSzP-2BuYqdgYn1vzHcsS1V4-2FRpwtDSnNozopAA21ef0ViJI3rgV0zbTWfuSktd8W1I0-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>swift-evolution mailing list<br><a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=RC5Cq0zAxCHc1sM9Uy3-2BojrrUAw-2F96zH69NULNHPvCu3iyq4I4uonhH1tkF5TJkjV2vSzLBE4XdE8dXddjoz5YYnV2R0VcCa-2FYnJmdyDpP1oT7gom2b9DWhPTGV-2BHoqDQbb7PhXS-2FWqovjokNV02KPpKBwJdr0F7HMeLaTnQ7yK5w6cxs0eDjtZN-2FV0W5uzFowBgH5sdtoqNEQEOSf36JdLVbDWWtOLhmMjQzAWHcqY-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>swift-evolution mailing list<br><a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=pQw7h83fWt3LLbgkfL4TSUL0weaZnVFZxDe5GShw4uRjN0ZFvcN-2F-2B24etK5r1SoFz23AabY6J7-2FVx89H15aQldnGfQqOOtr-2F3XAzts-2Be22eY9FQonE1HguaSl5RgQoyTZpSsPdWBw17CZ7R9oG45pIaJ1E3WVq7ut4PrJKSaCuLx7AtnGEH-2FvQq6o7LnVBsoVFVEYNjKfbFk70xi-2BZhCoA-3D-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>
</blockquote>