google / google/jsonnet

Allow referring to Object Locals which do not (directly or indirectly) depend on self and super in field name expressions.

Open
#832 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

Technically they could be defined outside of object, but that would be less readable. Whether or not a field has a dependency on self/super can be determined statically. The main disadvantage is that it's making the scoping rules even more complicated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.