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

The rest of the roadmap features! #9

Merged
merged 9 commits into from
Feb 12, 2023

Conversation

PacificBird
Copy link
Collaborator

@PacificBird PacificBird commented Feb 11, 2023

This branch contains documented and tested versions of all the remaining roadmap features left to implement. As noted in the comments of xor and subtract, I think our simple type system is holding us back currently. As of right now HumanRegex is essentially just a readable string templating system, which is fine, but it requires some jank to make sure the user cannot input invalid Rust RegEx, which is a shame. Now that these roadmap features are done, I think I could take on a project of refactoring the library to work with some new types implementing Into<HumanRegex> and some traits to go along with them. This way we could do really cool things like have a unified negation function. This would also allow us to clean up our generic system as mentioned here. Let me know what you think of this idea.

Also created a new function `escape_all` to fix the issue of not being able to escape a collection of Into<String> options for the logical functions. This problem caused a panic in the stop words cookbook section because if the result of `or()` was wrapped in square brackets, the hyphens in the text pulled from the stop words library would be interpreted as ranges.
@cmccomb
Copy link
Owner

cmccomb commented Feb 12, 2023

This is AMAZING, @PacificBird! Thank you for this huge PR. The strings can become amazingly jank so some refactoring would be very welcome.

@cmccomb cmccomb merged commit 5878df6 into cmccomb:master Feb 12, 2023
@PacificBird PacificBird deleted the roadmap_features branch February 12, 2023 15: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