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

Use := for definitions in the invariant tests #866

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

eggrobin
Copy link
Member

See #855 (comment) sqq.

Since Markus wanted := rather than ≔ this takes a bit of restructuring of the parser; I wrote it in a way that should avoid running into the C++03 >> problem in the future.

@eggrobin eggrobin requested review from macchiati and markusicu June 26, 2024 13:42
for (String s : sequences) {
if (candidate.token.equals(s)) {
result = candidate;
break;
Copy link
Member

Choose a reason for hiding this comment

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

I think you want to break out of the outer loop here as well. If so, the simplest would be to just return candidate; right here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don’t want to break here; I could be looking for == or ===, and in that case I would want to wait until I get ===.

@eggrobin eggrobin merged commit 1f6198b into unicode-org:main Jul 4, 2024
16 checks passed
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.

2 participants