4 ms·
It seems to me that HSL is a better fit than TOML. I use TOML because it is okay and seems better suited than YAML in some situations, but if I had a choice HCL
by encryptluks2 4y ago
It seems to me that HSL is a better fit than TOML. I use TOML because it is okay and seems better suited than YAML in some situations, but if I had a choice HCL would be the defacto standard.
- vore 4y agoHCL is also oodles more complex than TOML since it has expression evaluation, whereas TOML is just a static format. It really depends on your use case and I think there's a lot of cases where TOML makes a lot more sense than HCL (e.g. metadata formats).
- encryptluks2 4y agoHCL is one properly nested format and much more readable like YAML. TOML ends up getting confusing once you nest a few levels.
- vore 4y agoHCL also has expression evaluation however: TOML parsing is guaranteed linear over the size of the file, but HCL isn't necessarily because you can trivially do things like dynamically create a n*n-sized list from n-sized input list, which may be an undesirable property!
- jwilk 4y agoWhat's HCL?
- verdverm 4y agoHashicorp (config?) Language It's what your Terraform files are primarily written in
- verdverm 4y agoCUE is much better than HCL. I've been converting my more complex TF to CUE and then exporting as json for TF to consume.
- encryptluks2 4y agoThanks. I'll check it out.