cueckoo

Results 280 comments of cueckoo

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/165#issuecomment-559727798_ @rudolph9 I'm not sure what you mean that you cannot currently associate a default with a field. You can... But yes, in order for...

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/165#issuecomment-559936603_ @rudolph9 Regarding your example to eliminate value constraints, I assume you meant to use square brackets (as parentheses would require the value to be...

_Original reply by @rudolph9 in https://github.com/cuelang/cue/issues/165#issuecomment-560747409_ > @rudolph9 I'm not sure what you mean that you cannot currently associate a default with a field. You can... I think I was...

_Original reply by @rudolph9 in https://github.com/cuelang/cue/issues/165#issuecomment-565668710_ @mpvl here is related article on [Graph-Relational Object Queries](https://www.sanity.io/docs/how-queries-work) might offer some inspiration.

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/165#issuecomment-743131248_ @rudolph9 : we have looked a bit more into constraining using unification or subsumption, instead of boolean expressions, for instance: ``` PortMap: [_: {port:...

_Original reply by @extemporalgenome in https://github.com/cuelang/cue/issues/165#issuecomment-767924311_ Why wouldn't `patternProperties` be supportable in the language that exists today? My novice understanding is that `[=~ "^.*$"]: ...` is an equivalent concept.

_Original reply by @myitcv in https://github.com/cuelang/cue/issues/165#issuecomment-772453241_ In the [`v0.3.0-beta.3` release notes](https://github.com/cuelang/cue/releases/tag/v0.3.0-beta.3), `[ a.*, b.* ]` is proposed a query-based replacement for `[a] + [b]` (the latter is being removed). I'm...

_Original reply by @myitcv in https://github.com/cuelang/cue/issues/165#issuecomment-772682902_ Replying to self following discussion with @mpvl. That should actually be written as: ``` [ if x { [1,2,3].* }, b.* ] ```

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/165#issuecomment-773514814_ > Why wouldn't patternProperties be supportable in the language that exists today? My novice understanding is that [=~ "^.*$"]: ... is an equivalent concept....

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/165#issuecomment-773520748_ @rudolph9 regarding using subsumption, we think it may be possible if we the use of `X` in `[_: X]: expr` using the following rules:...