-
Notifications
You must be signed in to change notification settings - Fork 163
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
spec.md minor self-contradiction on scope of load
statements
#227
Comments
The correct wording can be found at https://github.com/google/starlark-go/blob/master/doc/spec.md#name-binding-and-variables, which was updated in google/starlark-go#178. A similar update needs to be applied to bazelbuild. |
Easy enough, thanks for the quick confirm 👍 — was about to open a quick PR but then noticed the CLA requirement, so, uh, apologies, not gonna do that as I don't really expect to become a contributor. 😞 (I'm also slightly alarmed by the existence of multiple slightly-different variations of what seems to be 99% the same spec? Is the one in |
The Go implementation and its docs came out of an effort to build a reference implementation and derive a sensible language spec. It identified a number of places where the Java implementation (used by Blaze) did not match the ideal semantics; many of those have since been fixed. The bazelbuild copy of the document was copied from the Go one, and the portions of the spec that the Java implementation did not implement were deleted without further ado. In an ideal world they would have been flagged as missing features and the two documents converged. The Go implementation and its document are closer to what I think we all agree are the ideal semantics; the Java implementation still lacks in terms of string encodings and support for byte strings. The team has been too short-staffed to spend more time on implementation and documentation convergence recently. |
From current spec.md:
starlark/spec.md
Lines 1344 to 1359 in 3d97ad7
a
andb
are listed as both module-scoped and file-scoped, which isn't exactly possible. I'm assuming this is an oversight with the bazelbuild/bazel#5636 change anda
andb
should simply be removed from the module scope list? (I'm not fully aware of the history here but it seems likeload
-imported names have been changed to not be re-exported…)The text was updated successfully, but these errors were encountered: