Skip to content

Fix string reverse member overload name#1045

Merged
TristonianJones merged 1 commit into
cel-expr:masterfrom
TristonianJones:strings_overload
Oct 21, 2024
Merged

Fix string reverse member overload name#1045
TristonianJones merged 1 commit into
cel-expr:masterfrom
TristonianJones:strings_overload

Conversation

@TristonianJones

@TristonianJones TristonianJones commented Oct 21, 2024

Copy link
Copy Markdown
Collaborator

Update the string reverse() overload id to be unique to the type.

In the future overload IDs for a given function should not be equal to
the function name as this can interfere with dynamic dispatch for a
parsed-only expression.

This change should be a no-op for anyone using reverse today as
the behavior will effectively cause existing expressions to use the
dynamic dispatch rather than the specific overload once more overloads
are introduced under the reverse function.

@TristonianJones TristonianJones merged commit 1468aa0 into cel-expr:master Oct 21, 2024
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