|
|
|
|
|
by 0cf8612b2e1e
420 days ago
|
|
If you can use a string anywhere you can use a t-string, then a non parametrized t-string is a code smell (lining error). If there is a dedicated template-string API, then there is the implicit threat you are breaking backwards compatibility to stop using regular strings. |
|
You can't; they're different types. t-strings are not `str`
It's up to good framework/API design to take advantage of this.