Live data from Hacker News

We fixed f-string typos in popular Python repos

highertier.com

151–154 of 154 posts

Re: We fixed f-string typos in popular Python repos

#151
post #67

Earlier quoted context omitted.

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.

Swift does have raw strings (the #"extended delimiter"# syntax).

No. Those ALSO have string interpolation!

#"\#(expression)"#

That is exactly the point.

Re: We fixed f-string typos in popular Python repos

#152
post #151

Earlier quoted context omitted.

Swift does have raw strings (the #"extended delimiter"# syntax).

No. Those ALSO have string interpolation! #"\#(expression)"# That is exactly the point.

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.

Re: We fixed f-string typos in popular Python repos

#153
post #151

Earlier quoted context omitted.

No. Those ALSO have string interpolation! #"\#(expression)"# That is exactly the point.

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.

No, they aren't. You can have any number of #. Including zero. It's ONE syntax.

Re: We fixed f-string typos in popular Python repos

#154
post #153

Earlier quoted context omitted.

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.

No, they aren't. You can have any number of #. Including zero. It's ONE syntax.

[deleted]
Post reply on HN