3 ms·
Hi, I'm a PEP author. The hope was that users would say "I know f-string syntax so I know this syntax." Similar to JS and its template literals -> tagged templa
by pauleveritt 2y ago
Hi, I'm a PEP author. The hope was that users would say "I know f-string syntax so I know this syntax." Similar to JS and its template literals -> tagged template literal jump.
- mumblemumble 2y agoThat would be an easy mental jump for skilled python users, but I think that it would be surprising for many less experienced users. Just giving it a function call syntax would be more in line with the principles established in PEP-20 IMO.
- pauleveritt 2y agoIf I understand correctly, you'd prefer what other commenters have said for `html(i"Hello {name}")`?
- mumblemumble 2y agoSomething like that, yeah.