[swift-evolution] multi-line string literals

Rainer Brockerhoff rainer at brockerhoff.net
Wed Dec 16 12:58:54 CST 2015


On 12/16/15 16:34, Jordan Rose wrote:
> 
>> On Dec 16, 2015, at 5:24 , Rainer Brockerhoff via swift-evolution
>> <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> to people migrating from other languages, but perhaps refocusing on the
>> original usage would not be?
>>
>> IOW, 'x' where x must be a Character, that is, an extended Unicode
>> grapheme cluster — represented in the source code as UTF8 or with the \u
>> notation. A shortcut for typing Character("x").
> 
> We actually had this at one point, but it turned out that sometimes you
> wanted a Character and sometimes a UnicodeScalar, and in both cases your
> algorithm was probably wrong (cf. String is no longer a CollectionType).
> At that point it didn't offer any benefits over just regular string
> syntax, and it freed up the syntax for /something/ else.

Great, thanks Jordan. I tried to search for this sort of historical
record but couldn't find it. Point taken.

-- 
Rainer Brockerhoff  <rainer at brockerhoff.net>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://brockerhoff.net/blog/


More information about the swift-evolution mailing list