google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.27k stars 204 forks source link

Expose `maxdepth` var #360

Closed fenollp closed 2 years ago

fenollp commented 3 years ago

This asks for https://github.com/google/starlark-go/blob/ebe61bd709bf23d7baddbb34e79084d7d156be04/starlark/value.go#L1222 to be exposed and writable.

As a user of this language mainly to express assertions on (nested) values, I want control over how values are compared. Not that I want to change this value but I do want to make sure it does not change throughout revisions without my noticing.

All contributors: thanks for all your work!