10 Dec 2014

A Quick Hack to Quote Swift Strings in a Playground

A Quick Hack to Quote Swift Strings in a Playground

Tonight, André Daniel asked a good question on Stack Overflow: does Swift have a “heredoc”-like syntax for saying, “no, really, these characters are exactly what I want in my string literal.” Unfortunately, the answer is “no”. The same is true of Objective C. Previously I’ve worked around this limitation by putting my strings into string […]