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

Make decls/type.go equivalent to existing type singletons #743

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

TristonianJones
Copy link
Collaborator

@TristonianJones TristonianJones commented Jun 15, 2023

The existing type singletons in the common/types package are used extensively within CEL and by CEL applications,
so preserving their existing behavior and interfaces (ref.Type, ref.Val) is critical when considering a consolidation of the type reps within CEL.

To this effect, the common/decls/types.go have been updated to mirror the semantics and interfaces of the existing type singletons with a test to demonstrate parity of behavior. The next PR will migrate types.go from common/decls to common/types and replace the existing type singletons. This may minorly break users as the type name will switch from types.TypeValue to types.Type. The disruption is expected to be minor as these changes are largely hidden behind the cel.Type alias.

#568

@TristonianJones TristonianJones merged commit 10a4b58 into google:master Jun 16, 2023
@TristonianJones TristonianJones deleted the type-ref-impl branch June 16, 2023 17:43
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