Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sort of. Inheritance extends (hence the keyword of the same name) while constraints restrict (or constrain).


Inheritance 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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: