The Philosopher's String
summary
Argues String defaults to a collection of extended grapheme clusters so code matches user‑perceived characters (an emoji can be four scalars), chooses canonical equivalence and NFC for fast, stable machine ordering, and pivots Swift 5 toward utf8 for performance and code size. Demonstrates building working tools: a Unicode code‑point printer using custom interpolations, padding helpers, scalar and scalar‑view fallbacks, and a multiline template — all implemented and shown producing the expected output.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:30What is a String?
- 2:15Swift's Philosophy of Strings
- 2:46Why It's Complicated
- 3:23Character Building
- 4:28Good Default Behavior
- 5:27Degenerate Graphemes
- 7:58Human Ordering
- 8:51de Machine Ordering
- 11:33Breaking From the Default
- 12:01The Right View for the Job
- 13:08Evolutionary History of String
- 16:19Get Involved: Share your code!
- 17:44Example: Formatting Strings
- 21:54What You Can Do








