Jul-20-2019, 07:11 PM
what seems, to me, to be happening with f-strings is that the compile phase is breaking it down to code (ultimately to byte code, if not directly) that builds the result string, which can then be used as a string value such as an assignment, a function/method argument, a dictionary lookup, or for an operator that can take a string. IoW, it results in a string that is formatted efficiently. i do wish there was a str method to do this at run time, though that would not be as efficient unless it can generate and cache byte code like a JiT system.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.