3 ms·
What is that conf format? Looks neither YAML, nor JSON. (if your conf files are not a standard format, this project is likely not going to go anywhere IMHO). e
by fizixer 6y ago
What is that conf format? Looks neither YAML, nor JSON. (if your conf files are not a standard format, this project is likely not going to go anywhere IMHO).
edit: Apparently non-standard [0].
[0] https://github.com/hashicorp/hcl https://github.com/hashicorp/hcl
- jakelazaroff 6y agoTerraform uses HCL, and it’s done pretty well! I think it’s significantly more ergonomic than YAML and JSON (and even slightly more than TOML).
- sciurus 6y agoAnd yet terraform uses the same format and is the leader in its space?
- armon 6y agoWe use HCL broadly across the HashiCorp portfolio. It was popularized by Terraform, but also used in Vault, Consul, Nomad, and Packer. Important to note, that HCL is designed to be completely interoperable with JSON. In practice, we find that HCL tends to be more human readable and writable and is significantly less verbose. However, if you are doing any sort of machine generation, it can be convenient to generate JSON and feed that in.
- yobert 6y agoHCL is a superset of JSON, so tools can still output json. having worked with HCL before for terraform, I can say it is way nicer for human-edited config files than either YAML or JSON.