4 ms·
Are you aware of the HCL2 specification at https://github.com/hashicorp/hcl2/blob/master/hcl/hclsyntax/spec.md https://github.com/hashicorp/hcl2/blob/master/hcl
by phaer 8y ago
Are you aware of the HCL2 specification at https://github.com/hashicorp/hcl2/blob/master/hcl/hclsyntax/spec.md https://github.com/hashicorp/hcl2/blob/master/hcl/hclsyntax/...? It also provides a validator, even for custom schema definitions.
- z0mbie42 8y agoYes, The problem is that we want a pure data configuration format. We think that very few application require a full turing complete language for their configuration. Bazel have too it's own (turing complete ?) Programming configuration language
- laurentlb 8y agoBazel's language (https://github.com/bazelbuild/starlark https://github.com/bazelbuild/starlark), also used in Buck and other tools, is technically not Turing-complete. In Bazel's BUILD files, there are additional restrictions (e.g. no function definition), making them relatively declarative and tool-friendly.
- kjeetgill 8y agoI literally just started prototyping this exact idea last week: a python interpreter without any imports/stdlib as a configuration language. I'm a little bummed I was beat to it. I was going back and forth on allowing defining functions. Definitely no classes.