Re:We fixed f-string typos in popular Python repos
by boxed on Friday April 29, 2022 @04:17PM
(#31210134)
Look up how this works in Swift. They only have one string. No raw strings or f strings. Yet they have all the power of all three python string types and less syntax. It's very nice.
[ Parent
| on HN ]
Re:We fixed f-string typos in popular Python repos
by minitech on Friday April 29, 2022 @10:18PM
(#31212780)
Swift does have raw strings (the #"extended delimiter"# syntax).
Re:We fixed f-string typos in popular Python repos
by boxed on Thursday May 12, 2022 @01:55PM
(#31357670)
No. Those ALSO have string interpolation!
#"\#(expression)"#
That is exactly the point.
Re:We fixed f-string typos in popular Python repos
by minitech on Friday May 13, 2022 @10:45PM
(#31374657)
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.