[swift-evolution] [Proposal] Refining Identifier and Operator Symbology

Nevin Brackett-Rozinsky nevin.brackettrozinsky at gmail.com
Fri Oct 21 14:26:55 CDT 2016


I think it is important that we as a community discuss the non-operator
portion of this proposal. And, given the strong opinions about operators
that have been expressed, I think it is unlikely we will do so while major
operator changes are on the table.

Thus I would suggest that either the operator changes should be separated
out into their own proposal, or we should make only minor (and generally
consensus-agreed) changes to the operator set as part of this one.

Here is what I propose:

Emoji shall be identifiers, not operators.
The turned ampersand shall be an operator, not an identifier.
The empty set and infinity symbols shall be identifiers, not operators.

All other potential changes to the set of operator characters then go in
their own proposal, which I am sure will receive a lot of attention.

It may turn out that the non-operator portion of this proposal nonetheless
touches characters that Swift has designated for operators, in which case
we may address those as they arise.

Does that sound like a reasonable way forward?

Nevin



On Fri, Oct 21, 2016 at 9:27 AM, Ben Rimmington via swift-evolution <
swift-evolution at swift.org> wrote:

>
> > On 21 Oct 2016, at 13:42, Benjamin Spratling wrote:
> >
> > Brackets and symbols are definitely operators.  Different brackets are
> used to represent various quantum mechanical forms and operations.
>
> The brackets are mostly "bracket pieces":
>
>         [:Math_Symbol:]
>         - [:name=/\bANGLE\b/:]
>         - [:Emoji:]
>         - [:ID_Continue:]
>         - [:NFC_Quick_Check=No:]
>         & [:Script_Extensions=Common:]
>         & [:Block=Miscellaneous_Technical:]
>
> <http://www.unicode.org/cldr/utility/list-unicodeset.jsp?a=
> %5B%3AMath_Symbol%3A%5D%0D%0A-+%5B%3Aname%3D%2F%5CbANGLE%
> 5Cb%2F%3A%5D%0D%0A-+%5B%3AEmoji%3A%5D%0D%0A-+%5B%3AID_
> Continue%3A%5D%0D%0A-+%5B%3ANFC_Quick_Check%3DNo%3A%5D%
> 0D%0A%26+%5B%3AScript_Extensions%3DCommon%3A%5D%0D%0A%26+%5B%3ABlock%
> 3DMiscellaneous_Technical%3A%5D>
>
> > Arrows are also useful as operators, including but not restricted to
> chemical reactions.
>
> Including arrows, there are 740 operators:
>
>         [:Math_Symbol:]
>         - [:name=/\bANGLE\b/:]
>         - [:name=EMPTY SET:]
>         - [:name=INFINITY:]
>         - [:Emoji:]
>         - [:ID_Continue:]
>         - [:NFC_Quick_Check=No:]
>         & [:Script_Extensions=Common:]
>         & [[:Block=Arrows:]
>            [:Block=General_Punctuation:]
>            [:Block=Latin_1_Supplement:]
>            [:Block=Mathematical_Operators:]
>            [:Block=Miscellaneous_Mathematical_Symbols_A:]
>            [:Block=Miscellaneous_Symbols_And_Arrows:]
>            [:Block=Supplemental_Arrows_A:]
>            [:Block=Supplemental_Arrows_B:]
>            [:Block=Supplemental_Mathematical_Operators:]]
>
> <http://www.unicode.org/cldr/utility/list-unicodeset.jsp?a=
> %5B%3AMath_Symbol%3A%5D%0D%0A-+%5B%3Aname%3D%2F%5CbANGLE%
> 5Cb%2F%3A%5D%0D%0A-+%5B%3Aname%3DEMPTY+SET%3A%5D%0D%
> 0A-+%5B%3Aname%3DINFINITY%3A%5D%0D%0A-+%5B%3AEmoji%3A%5D%
> 0D%0A-+%5B%3AID_Continue%3A%5D%0D%0A-+%5B%3ANFC_Quick_
> Check%3DNo%3A%5D%0D%0A%26+%5B%3AScript_Extensions%3DCommon%
> 3A%5D%0D%0A%26+%5B%5B%3ABlock%3DArrows%3A%5D%0D%0A+++%5B%
> 3ABlock%3DGeneral_Punctuation%3A%5D%0D%0A+++%5B%3ABlock%
> 3DLatin_1_Supplement%3A%5D%0D%0A+++%5B%3ABlock%
> 3DMathematical_Operators%3A%5D%0D%0A+++%5B%3ABlock%
> 3DMiscellaneous_Mathematical_Symbols_A%3A%5D%0D%0A+++%5B%
> 3ABlock%3DMiscellaneous_Symbols_And_Arrows%3A%5D%0D%0A+++%5B%3ABlock%
> 3DSupplemental_Arrows_A%3A%5D%0D%0A+++%5B%3ABlock%
> 3DSupplemental_Arrows_B%3A%5D%0D%0A+++%5B%3ABlock%
> 3DSupplemental_Mathematical_Operators%3A%5D%5D>
>
> -- Ben
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161021/5ce38894/attachment.html>


More information about the swift-evolution mailing list