3 ms·
The escape character is \. Same as in Python. But in Python you have to watch out for \ AND {. In Swift, only \. And you can do this: ####"foo ###\(this is no
by boxed 2y ago
The escape character is \. Same as in Python. But in Python you have to watch out for \ AND {. In Swift, only \.
And you can do this:
####"foo ###\(this is not interpolation) ####\(but this is) bar"####
In Pythons f-strings you can't ever write the literal `{foo}` in a string for documentation for example. It's a mess.