4 ms·
Compare to Typescript having a very small but significant difference. They use backticks instead of an f-prefix. I think this minor difference eliminates all c
by Too 5y ago
Compare to Typescript having a very small but significant difference. They use backticks instead of an f-prefix.
I think this minor difference eliminates all confusion of whether concatenating f strings and normal strings propagate. Same when you split an existing f-string in two because it became too long, there is no risk to forget a backtick on the second pet, in the same way you would with f-prefix, because if you do the closing tick doesn’t match the opening.
Linting the existing f-strings is, as shown by this bot, unfortunately very difficult.