Repository navigation
Add comment about jury-rigging an xor - #937
Open
hiAndrewQuinn wants to merge 1 commit into
Open
hiAndrewQuinn wants to merge 1 commit into
hiAndrewQuinn wants to merge 1 commit into
Conversation
CorbanPendrak
approved these changes
Mar 6, 2025
CorbanPendrak
left a comment
There was a problem hiding this comment.
While the term 'jury-rig' is nonintuitive and 'create' or 'write' might be better, the following description makes the meaning self-evident, and this is a useful addition.
JamesRandom
suggested changes
Nov 1, 2026
| * { not (visit_paris or visit_rome) && (visit_london || visit_new_york) } [ Wait. Go where? I'm confused. ] -> visit_someplace | ||
|
|
||
| For non-programmers `X and Y` means both X and Y must be true. `X or Y` means either or both. We don't have a `xor`. | ||
| For non-programmers `X and Y` means both X and Y must be true. `X or Y` means either or both. We don't have a `xor`, but you could jury rig one with `(X and not Y) or (Y and not X)`. |
There was a problem hiding this comment.
Suggested change
| For non-programmers `X and Y` means both X and Y must be true. `X or Y` means either or both. We don't have a `xor`, but you could jury rig one with `(X and not Y) or (Y and not X)`. | |
| For non-programmers `X and Y` means both X and Y must be true. `X or Y` means either or both. We don't have a `xor`, but you could create one with `(X and not Y) or (Y and not X)`. |
(As a technical writer) I would prefer "create" to "jury rig", which may be unfamiliar to non-native speakers. Also, "jury rig" implies some sort of hack or improper construction, while that expression is a formally correct definition.
There was a problem hiding this comment.
I've included that wording in my PR #981, to avoid merge conflicts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.