google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
6.87k stars 436 forks source link

Bind the standard library to a `$std` variable and use it in desugared expressions #1158

Closed eduardosm closed 1 month ago

eduardosm commented 2 months ago

This keeps redefining std from breaking expressions that desugar to calls to standard library functions by redefining std.

This is similar to what the Go implementation does.

Fixes https://github.com/google/jsonnet/issues/1128.

sbarzowski commented 1 month ago

Thank you! This makes it cleaner.