starlark icon indicating copy to clipboard operation
starlark copied to clipboard

Starlark Language

Results 84 starlark issues
Sort by recently updated
recently updated
newest added

``` lambda x,: None ``` is valid in Python, but invalid by this spec and in java implementation. If the difference is intentional, let's mention that explicitly. If that's accidental,...

This proposal came out of a discussion about best practices for `ToolchainInfo` objects. I don't think we have a need to prioritize implementing this at the moment, but we can...

This proposal argues for the addition of a new 'bytes' data type to Starlark, defined as an immutable sequence of byte (uint8) values. Starlark has implementations in Go, Java, and...

The spec does not mandate the order of effects in a compound assignment such as `x, y, z = f()`. The Java and Go implementations, like Python, evaluate f() before...

The behavior of, say, `"%f" % 1.2345` should not be a function of the user's environment. The spec should state that, and the implementations should be audited for operations that...

The spec says of `x += y`: > if x refers to a list, the statement does not allocate a new list but instead mutates the original list in place,...

Motivation is this: * it is not possible for user to freeze a value * it might not be possible to provide ability to freeze individual values in all implementation...

The Starlark spec states that the scope of a global binding is the entire file, including the portion before the binding. That is, this program is not statically rejected, but...

Following up from https://github.com/bazelbuild/buildtools/issues/900, I think Starlark (or at least some extension thereof) should permit a grammar that allows inserting type annotations. Concretely (but informally) we should allow: ``` def...

[`File.is_directory`](https://github.com/bazelbuild/bazel/blob/0.16.1/src/main/java/com/google/devtools/build/lib/skylarkbuildapi/FileApi.java#L75) has been around for a while but is undocumented (and therefore unsupported). Yet directories (internally, `TreeArtifact`s) have increasing support in the Starlark action API. In particular, if they are...