▲ | mjevans 8 days ago | |||||||||||||||||||||||||
Please read the context of my reply again. The Rejected Golang proposal cited by the post I'm replying to. NOT Python's present PEP or any other string that might resolve magic variables (just not literally eval / exec functions!). | ||||||||||||||||||||||||||
▲ | zahlman 8 days ago | parent | next [-] | |||||||||||||||||||||||||
As far as I can tell from the linked proposal, it wouldn't have involved such evaluation either. It seems like it was intended to work fundamentally the same way as it currently does in Python: by analyzing the string literal ahead of time and translating into equivalent explicit formatting code, as syntactic sugar. There seem to have been many misunderstandings in the GitHub discussion. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | paulddraper 8 days ago | parent | prev [-] | |||||||||||||||||||||||||
The proposal cited Swift, Kotlin, and C# which have similar syntax sugar. The proposal was for the same. |