A Welcome Syntax
A Welcome Syntax
Posted Apr 22, 2025 15:28 UTC (Tue) by farnz (subscriber, #17727)In reply to: A Welcome Syntax by kleptog
Parent article: Template strings accepted for Python 3.14
I'd also change yield to be syntactically the same as a function call; the issue I have with Python's current await foo syntax is the implicit order of evaluation, and the parentheses make order of evaluation explicit. I'd be happy for them to be {} instead of (), or some other formatting, to make it clear that it's not a function; what I'm not happy with is the current thing where await and yield let my coworkers write code that works, but is unclear because they've shoved await in wherever they think they need it, rather than thinking about what they want it to say.
