|
|
Log in / Subscribe / Register

A Welcome Syntax

A Welcome Syntax

Posted Apr 23, 2025 11:01 UTC (Wed) by wjb (subscriber, #71810)
In reply to: A Welcome Syntax by intelfx
Parent article: Template strings accepted for Python 3.14

I've seen similar issues in Dart a few years back

There is a problem when you accidentally call an aysnc function (one with side effects you need) without an await. You can also end up in a real mess when a function that has existed a while is changed to async because of reasons and you fail to start by putting an await everywhere its used.

I have thought that a reasonable way of dealing with this might be to require that all async function calls be preceded by await or async keyword, so the expected behaviour is absolutely obvious and any change to the asyncness(?) of a function forces you to look at every point where it's used.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds