3 ms·
The f-string annoyance that dwarfs all others is forgetting the bloody f, and the associated forehead slap when the console says "the answer to your big calcula
by tragomaskhalos 4y ago
The f-string annoyance that dwarfs all others is forgetting the bloody f, and the associated forehead slap when the console says "the answer to your big calculation is {answer}" (sic). Unfortunately I'm not sure there's any clever language solution to that.
- layer8 4y agoProper syntax highlighting should solve this.
- brennvin 4y agoWhat if the compiler issued a warning if the f was missing and let you suppress the warning with an r?
- cricalix 4y agoIt's not a language solution, but an AST based linter perhaps? PyCQA might have one already; they definitely have a "consider using f-strings" lint you can turn on.