Y
Hacker News
new
|
ask
|
show
|
jobs
by
minitech
1515 days ago
Swift
does
have raw strings (the #"extended delimiter"# syntax).
1 comments
boxed
1502 days ago
No. Those ALSO have string interpolation!
#"\#(expression)"#
That is exactly the point.
link
minitech
1501 days 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.
link
boxed
1493 days ago
No, they aren't. You can have any number of #. Including zero. It's ONE syntax.
link
#"\#(expression)"#
That is exactly the point.