Mark Davis ☕️
mark at macchiato.com
Wed Jun 4 04:41:17 CDT 2014
Apparently you can use emoji in the identifiers.
*— Il meglio è l’inimico del bene —*
On Wed, Jun 4, 2014 at 11:28 AM, Andre Schappo <A.Schappo at lboro.ac.uk>
> Swift is Apple's new programming language. In Swift, variable and constant
> names can be constructed from Unicode characters. Here are a couple of
> examples from Apple's doc
> let π = 3.14159
> let 你好 = "你好世界"
> I think this a huge step forward for i18n and Unicode.
> There are some restrictions on which Unicode chars can be used. From
> Apple's doc
> "Constant and variable names cannot contain mathematical symbols, arrows,
> private-use (or invalid) Unicode code points, or line- and box-drawing
> characters. Nor can they begin with a number, although numbers may be
> included elsewhere within the name."
> The restrictions seem a little like IDNA2008. Anyone have links to info
> giving a detailed explanation/tabulation of allowed and non allowed Unicode
> chars for Swift Variable and Constant names?
> André Schappo
> Unicode mailing list
> Unicode at unicode.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Unicode