cueckoo

Results 280 comments of cueckoo

_Original reply by @seh in https://github.com/cuelang/cue/issues/822#issuecomment-832282393_ Like @niemeyer, my first reading of this proposal had me feeling unworthy. So much of it seemed backwards and confusing to me, but I...

_Original reply by @seh in https://github.com/cuelang/cue/issues/822#issuecomment-832375090_ Another thought, again echoing @niemeyer's statements: I read "required" and "optional" as antonyms, with no third choice. Including both a required designator (`!`) and...

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/822#issuecomment-832988608_ @seh and @niemeyer, thanks for the feedback. I'm not entirely happy, of course, about both flags being present, but so far I have not...

_Original reply by @seh in https://github.com/cuelang/cue/issues/822#issuecomment-832998222_ All the big thoughts come to me _after_ I write something here, so take whatever I'm writing this time with a grain of salt....

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/822#issuecomment-833004434_ @seh, note that this proposal does not change the semantics of optional fields (using ?): > What would it mean for an optional CUE...

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/822#issuecomment-833013147_ > What would it mean to define an optional CUE field with a concrete value? Doesn't that just make it a regular field? Same...

_Original reply by @seh in https://github.com/cuelang/cue/issues/822#issuecomment-833078274_ > Similarly, `foo!: 1` means: `foo` must be specified and it must be 1. This is actually quite commonly needed (e.g. `#Service: kind!: "Service"`)...

_Original reply by @niemeyer in https://github.com/cuelang/cue/issues/822#issuecomment-833084047_ > Perhaps the best way forward is to collect a few key examples that expose the entire set of problems and requirements to see...

_Original reply by @niemeyer in https://github.com/cuelang/cue/issues/822#issuecomment-833099224_ A correction to the above example: ``` #person: { name: string age?: int } jack: #person & { name: string // incomplete error; string...

_Original reply by @mpvl in https://github.com/cuelang/cue/issues/822#issuecomment-833181100_ @seh: with "must be specified," I mean indeed that it _must_ be specified and cannot be omitted. So it will _not_ be the same...