3 ms·
Sort of. Inheritance extends (hence the keyword of the same name) while constraints restrict (or constrain).
by throwaway894345 5y ago
Sort of. Inheritance extends (hence the keyword of the same name) while constraints restrict (or constrain).
- verdverm 5y agoInheritance also allows overrides, which is something CUE errors on. CUE has Go like embedding so you can reuse common schema or config. CUE's constraints are in the "middle" of the spectrum (lattice, partially ordered graph) from abstract types to concrete data.