cue-lang / cue

The home of the CUE language! Validate and define text-based and dynamic configuration
https://cuelang.org
Apache License 2.0
5.06k stars 288 forks source link

docs: comparison with Dhall #830

Open cueckoo opened 3 years ago

cueckoo commented 3 years ago

Originally opened by @marco-m in https://github.com/cuelang/cue/issues/830

the Cue documentation makes comparisons for specific features with languages such as Jsonnet and GCL. Given the popularity and expressiveness of Dhall, I think it would make sense to have an equivalent comparison section. Thanks!

cueckoo commented 3 years ago

Original reply by @gregwebs in https://github.com/cuelang/cue/issues/830#issuecomment-553109076

In addition to what is mentioned in the other issue, some things I have noticed are:

dhall just added support for defaults in https://github.com/dhall-lang/dhall-lang/pull/767 When they are added to dhall-kubernetes, then it will be possible to configure kubernetes with dhall with a minimal amount of boilerplate. Until then, it is much easier to use cue for Kubernetes.

Its a lot more natural to generate lists of output and conditional output with dhall because it is more of just a restricted programming language

Dhall has some abilities that cue doesn't have