[Proposal] Refining Identifier and Operator


(Jon Hull) #1

I also need upside-down question mark and exclamation point: ¡ ¿

¿If the right side up versions are operators, why not the upside-down versions? I am using them because they are easy to type and my grammar calls for both ? and !, which are already in use by swift. Using ¡ and ¿ is an easy translation when typing in from research papers (which use ! and ?). I have quite a few projects dependent on these, and I don’t think they would ever be confused with identifiers… so why ban them?

Thanks,
Jon

···

On Thu, Oct 20, 2016 at 9:29 AM, Jonathan S. Shapiro via swift-evolution < > swift-evolution at swift.org <https://lists.swift.org/mailman/listinfo/swift-evolution>> wrote:

> Quick poll as a sanity check on a possible alternative for operators:
>
> If we admitted [:Sm:] and [:So:] and the traditional ASCII operator
> characters, would that cover the things that people currently feel
> passionate about? That would almost certainly be compliant with UAX31 once
> it settles, and I *think* it covers all of the cases people have raised
> here.
>
> Useful links if you want to check:
>
> [:Sm:] Symbol, Math
> <http://www.fileformat.info/info/unicode/category/Sm/list.htm>
>
> [:So:] Symbol, Other
> <http://www.fileformat.info/info/unicode/category/So/list.htm>
>
>