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

Adding details to README about limiting machine complexity #124

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

jonessha
Copy link
Contributor

@jonessha jonessha commented Nov 1, 2023


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

README.md Outdated
machine.addPatternRule(Integer.toString(++i), rule);

// Move on to the next rule.
continue ruleLoop;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This took a while to understand because of the goto. it might be easier to to understand if you break this into two methods, one that finds if there's a wildcard pattern present or not, and a second that does the addPatternRule here for rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The goto is super cool though. But ok.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yup. I don't recall where you used it last time, but I found it super cool back then. 🙇

@baldawar baldawar merged commit ece2ca1 into main Nov 6, 2023
3 checks passed
@jonessha jonessha deleted the readme_update branch November 6, 2023 23:50
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