-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Optional static typing for Starlark #7468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @lberki |
💯 I would be very happy even if this is a standalone static typechecker. |
There have been a few discussions around this and it's on the list of project ideas (https://github.com/bazelbuild/bazel/wiki/Project-Ideas#static-type-checker-for-starlark). See also https://groups.google.com/d/msg/bazel-dev/Pk9VrPCqby0/zoOL1IkxEAAJ |
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
@sgowroji Please reopen, this is still relevant. Having Starlark support one of the optional type annotation methods available in Python would be very useful. |
See also: #22935 |
Reading #7428 makes me feel like we have worse of both worlds - dynamic typing without dynamic lookup, or static lookup without type safety. If tooling and safety is a goal of Starlark, and it's ok to diverge from Python spec, what is Starlark's team opinion about optional static typing for Starlark?
The text was updated successfully, but these errors were encountered: