Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add comment about jury-rigging an xor - #937

Open
hiAndrewQuinn wants to merge 1 commit into
inkle:masterfrom
hiAndrewQuinn:master
Open

hiAndrewQuinn wants to merge 1 commit into
inkle:masterfrom
hiAndrewQuinn:master

Conversation

@hiAndrewQuinn

Copy link
Copy Markdown

No description provided.

@CorbanPendrak CorbanPendrak left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

* { 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)`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've included that wording in my PR #981, to avoid merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants