[swift-evolution] Request to add middle dot (U+00B7) as operator character?
clattner at apple.com
Thu Dec 17 18:19:06 CST 2015
> On Dec 17, 2015, at 4:15 PM, Greg Parker via swift-evolution <swift-evolution at swift.org> wrote:
>> On Dec 17, 2015, at 12:14 PM, Ethan Tira-Thompson via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 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.
> IHNTA, IJWTS "🐶 is an identifier but ⚽︎ is an operator, according to Swift's current rules.”
I’m not sure what the initialisicms stand for, but any proposal that breaks:
let 🐶🐮 = "moof"
will not be tolerated. :-) :-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution