bazelbuild / starlark

Starlark Language
Apache License 2.0
2.38k stars 158 forks source link

Add "async" as reserved name #250

Closed brandjon closed 1 year ago

brandjon commented 1 year ago

In the "Lexical elements" heading, in the list of reserved names, we should probably add "async". Disallowing that will help ensure we remain a syntactic subset of Python 3.

laurentlb commented 1 year ago

This is technically a breaking change, but I expect they are rarely used as identifiers. Neither async nor await is used in Starlark files in the Google codebase.

The spec was updated; both await and async are added.