<div style="white-space:pre-wrap">I would also like to understand the perceived problem for first time programmers. To me first time programmers would be working with string literals (&quot;hello world&quot;), string literals with values in them (&quot;Hello /(name)&quot;), doing basic string concat, using higher level API of string to do and find things in a string, etc..<br><br>I think indexing into a string is actually a complex programming task and usually is the last thing you want to be doing outside specific problem domains.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 17, 2016 at 12:38 PM William Sumner via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
&gt; On Aug 17, 2016, at 10:40 AM, Kenny Leung via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt; I understand that the most friendly approach may not be the most efficient, but that’s not what I’m pushing for. I’m pushing for &quot;does the thing people would most commonly expect”. Take a first-time programmer who reads any (human) language, and that is what they would expect.<br>
&gt;<br>
&gt; Why couldn’t String’s internal storage format be glyph-based? If I were, say, writing a text editor, it would certainly be the easiest and most efficient format to work in.<br>
&gt;<br>
&gt; -Kenny<br>
<br>
Can you be more specific about the improvements you’d like to see? Based on an earlier message, you want to be able to use subscripting on strings to retrieve visual glyphs, but you can do this now via the .characters property, which presents a view of the string’s contents as a collection of extended grapheme clusters.<br>
<br>
Preston<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>