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

Remove duplication and improve naming of adjacent results #1504

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

henriquemoody
Copy link
Member

I identified a pattern among rules that create results with adjacent results, so I created a method that abstracts that. I did have to compromise with the DateTimeDiff, having to escape the input instead of using the name itself, but that seems like a good trade-off.

I've also renamed "Subsequent" to "Adjacent" because it sounded better. This is the second time I've renamed this concept, and I hope it will be the last.

I identified a pattern among rules that create results with adjacent
results, so I created a method that abstracts that. I did have to
compromise with the DateTimeDiff, having to escape the input instead of
using the name itself, but that seems like a good trade-off.

I've also renamed "Subsequent" to "Adjacent" because it sounded better.
This is the second time I've renamed this concept, and I hope it will be
the last.
@henriquemoody henriquemoody merged commit 18d8246 into Respect:main Dec 20, 2024
6 checks passed
@henriquemoody henriquemoody deleted the core/adjacent branch December 20, 2024 16:22
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