Open cueckoo opened 3 years ago
Original reply by @verdverm in https://github.com/cuelang/cue/issues/423#issuecomment-642287312
@shykes convinced me having user defined functions is a bad idea because it means Cue can't evaluate all cue code anymore, effectively fracturing the ecosystem
https://github.com/cuelang/cue/issues/350#issuecomment-619291671
Original reply by @mikelnrd in https://github.com/cuelang/cue/issues/423#issuecomment-642637904
Ah yes that's a good point @verdverm. I don't have enough experience with cue or the roadmap to try to weigh in on the pros/cons of user defined functions but fracturing of the ecosystem doesn't sound good.
Original reply by @mpvl in https://github.com/cuelang/cue/issues/423#issuecomment-644559668
There definitely should be a package like this. The difficulty so far has been to come up with a good API: cue operates on both value and type level and the two sometimes need slightly different semantics. So coming up with good naming and/or options is a challenge. So this is mostly a design matter.
Originally opened by @mikelnrd in https://github.com/cuelang/cue/issues/423
Hi. Just throwing a slightly crazy idea out there in case it sticks... how about
pkg/encoding/cue
?I believe cue (used as a pkg inside of cue) would fit the requirement of being hermetic:
Use cases I can think of: