3 ms·
I assume that's possible in many programming languages, although may be a pain for the parser. Doesn't Python already totally change how it parses method defini
by tshaddox 5y ago
I assume that's possible in many programming languages, although may be a pain for the parser. Doesn't Python already totally change how it parses method definitions if there's a single `yield` keyword in the definition? That seems pretty similar to me.
- zffr 5y agoIt’s also possible to keep the parser simple, and look for “await” function calls during static analysis of the AST.