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

Only special case empty Hanzi Math results of subtraction #47

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

mreichhoff
Copy link
Owner

Previously, operations like 我+你+我 would return results. This was because empty results of prior operations effectively reset the result, but we only want that with subtraction. 我+你+我 now returns [].

Note that this does not address self-adds, which are still broken. It also continues adding all parents in cases like: 我-我+我. The same transitivity is true for normal operations (so 力+口 returns many characters with 另 or 加 as a component, intentionally).

Previously, operations like 我+你+我 would return results.
This was because empty results of prior operations effectively
reset the result, but we only want that with subtraction.
我+你+我 now returns [].

Note that this does not address self-adds, which are still broken.
It also continues adding all parents in cases like: 我-我+我.
The same transitivity is true for normal operations (so 力+口
returns many characters with 另 or 加 as a component, intentionally).
Copy link

Visit the preview URL for this PR (updated for commit a5dd886):

https://hanzigraph--pr47-math-empty-list-kru99pqk.web.app

(expires Mon, 15 Jul 2024 19:11:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dbfc59c053d815dc5dedbd48d2959ec4a33d1b39

@mreichhoff mreichhoff changed the title Only special case empty Hanzi Math results due to subtraction Only special case empty Hanzi Math results of subtraction Jul 14, 2024
@mreichhoff mreichhoff merged commit 24e4e69 into main Jul 14, 2024
2 checks passed
@mreichhoff mreichhoff deleted the math-empty-list branch July 14, 2024 19:18
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.

1 participant