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

DRAFT: feat(core registry): Implement sort_early Pattern option. #1225

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thet
Copy link
Member

@thet thet commented Jan 13, 2025

When scanning a document for patterns, resort patterns and set those with a sort_early property to the beginning of the initialization chain.

NOTE: Only use when necessary. It's not guaranteed that a pattern with sort_early is set before another pattern with sort_early. Patterns which are registered later will have a higher chance to be sorted before others. Last come, first serve.

Note: This is an experiment. There was a use case for this which was solved differently. However, this can come in handy sometime. If so, we have a PR.

When scanning a document for patterns, resort patterns and set those with a
sort_early property to the beginning of the initialization chain.

NOTE: Only use when necessary. It's not guaranteed that a pattern with
sort_early is set before another pattern with sort_early. Patterns which
are registered later will have a higher chance to be sorted before
others. Last come, first serve.
@thet thet marked this pull request as draft January 13, 2025 22:51
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