Skip to content

Conversation

@copybara-service
Copy link

Add AddUnknownPattern() and AddMissingPattern().

The other activation functions can be used incrementally, but SetUnknownPatterns() and SetMissingPatterns() cannot. This makes it a bit annoying to use, since you can't have a wrapper function that either binds an attribute or add an unknown pattern, that you could for example call in a loop.

Since attribute patterns are just a vector anyway, it is easy to make it support incremental additions.

The other activation functions can be used incrementally, but SetUnknownPatterns() and SetMissingPatterns() cannot. This makes it a bit annoying to use, since you can't have a wrapper function that either binds an attribute or add an unknown pattern, that you could for example call in a loop.

Since attribute patterns are just a vector anyway, it is easy to make it support incremental additions.

PiperOrigin-RevId: 748766532
@copybara-service copybara-service bot merged commit 050b21e into master Apr 17, 2025
1 check passed
@copybara-service copybara-service bot deleted the test_748615528 branch April 17, 2025 19:14
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