Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
minitech
4y ago
0 comments
Share
Swift
does
have raw strings (the #"extended delimiter"# syntax).
0 comments
default
newest
oldest
boxed
3y ago
No. Those ALSO have string interpolation!
#"\#(expression)"#
That is exactly the point.
minitech
OP
3y ago
But they’re a distinct string syntax. Your point seemed to be that there was only one. rf"{expression}" works in Python too, note, so either way you want to interpret it, raw strings aren’t a difference.
boxed
3y ago
No, they aren't. You can have any number of #. Including zero. It's ONE syntax.
1 more reply
j
/
k
navigate · click thread line to collapse