[swift-evolution] Character vs. String literals
Andrew Duncan
andrewzboard at gmail.com
Sun Dec 20 15:44:27 CST 2015
We have all watched the evolution of the String class, and the amazing jockeying required to accommodate Unicode combining characters and the like. At this point, the distinction between Characters and Strings and Arrays of Characters (myString.characters) is becoming clearer.
But in the source code, there is ambiguity. What is "a", a character literal or a string of length 1? I suggest reinstating the C convention of using single-quotes for delimiting Characters.
More information about the swift-evolution
mailing list