[swift-evolution] Request to add middle dot (U+00B7) as operator character?
radexpl at gmail.com
Thu Dec 17 16:35:45 CST 2015
Although I would personally never, ever want to do this, I see no reason why this character shouldn’t be allowed for an operator.
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.
> On 17 Dec 2015, at 21:14, Ethan Tira-Thompson via swift-evolution <swift-evolution at swift.org> wrote:
> Hi swift-evolution,
> I wanted to use ‘·’ as a dot-product operator, but it’s not currently defined as an operator character. (rdar://problem/23930008 <rdar://problem/23930008> suggested I come here for comment.)
> 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.
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution