Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/howto/negate-a-disjunction #160

Closed
jpluscplusm opened this issue Jun 14, 2024 · 3 comments
Closed

docs/howto/negate-a-disjunction #160

jpluscplusm opened this issue Jun 14, 2024 · 3 comments
Labels
good first issue Good for newcomers howto For content that in the "howto" diataxis quadrant

Comments

@jpluscplusm
Copy link
Collaborator

jpluscplusm commented Jun 14, 2024

(From cue-lang/cue#3229 (comment))

A new Commented CUE howto guide that demonstrates the current method for complementing/negating a disjunction:

#foo: "1" | "2"

foo: "3"
_foo_ok: true & ((foo & #foo) == _|_)

(Flesh this example out a little - don't just include it verbatim)

Include a link to cue-lang/cue#943 and not() in the related content section, clearly marked as a probable future simplification - ie without a direct example (so that it can't be erroneously copied before the feature is available)

@jpluscplusm jpluscplusm added good first issue Good for newcomers howto For content that in the "howto" diataxis quadrant labels Jun 14, 2024
@hansbogert
Copy link
Contributor

Which page would you suggest to add this to? @jpluscplusm @myitcv

@jpluscplusm
Copy link
Collaborator Author

jpluscplusm commented Jun 15, 2024

Which page would you suggest to add this to?

@hansbogert I've updated the initial comment to make it clear that it's a new page.

The issue title generally tracks the current path suggestion, but it isn't binding - the experience of writing a page often informs us about the most suitable title as we're doing it. We're not precious about rigidly sticking to the issue's suggestion!

cueckoo pushed a commit to cue-lang/cuelang.org-trybot that referenced this issue Jul 8, 2024
This adds a guide that explains how to check if a value is not an
element of a disjunction, i.e. the negation of a disjunction

Closes cue-lang/docs-and-content#160

Closes #460 as merged as of commit 10291496.

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
Preview-Path: /docs/howto/negate-a-disjunction/
Change-Id: I54b091659a682014bd6ae11de3d2a31e3c1ec046
Dispatch-Trailer: {"type":"trybot","CL":1197377,"patchset":1,"ref":"refs/changes/77/1197377/1","targetBranch":"master"}
cueckoo pushed a commit to cue-lang/cuelang.org that referenced this issue Jul 8, 2024
This adds a guide that explains how to check if a value is not an
element of a disjunction, i.e. the negation of a disjunction

Closes cue-lang/docs-and-content#160

Closes #460 as merged as of commit 1029149.

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
Preview-Path: /docs/howto/negate-a-disjunction/
Change-Id: I54b091659a682014bd6ae11de3d2a31e3c1ec046
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cuelang.org/+/1197377
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
@jpluscplusm
Copy link
Collaborator Author

Closed via cue-lang/cuelang.org@0e8f9ab

@github-project-automation github-project-automation bot moved this from Backlog to Done in Docs and Content Roadmap Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers howto For content that in the "howto" diataxis quadrant
Projects
Status: Done
Development

No branches or pull requests

2 participants