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

Data: Add ValueSlice() to Field #625

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Data: Add ValueSlice() to Field #625

wants to merge 1 commit into from

Conversation

kylebrandt
Copy link
Contributor

@kylebrandt kylebrandt commented Feb 23, 2023

allows readers to access the slice as whole after a type assertion

This effect gives a way to expose the underlying vector property. For example, one can get the []float64 slice without making a new one.

allows readers to access the slice as whole after a type asserition
@kylebrandt kylebrandt added the area/dataplane Dataplane Project (Data type contract) label Feb 23, 2023
@kylebrandt kylebrandt requested a review from a team as a code owner February 23, 2023 12:19
Copy link
Contributor

@yesoreyeram yesoreyeram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale Issue or PR without activity label Feb 29, 2024
@gabor
Copy link
Contributor

gabor commented Feb 29, 2024

@kylebrandt was this intentionally not-merged? the provided functionality seems useful, I know I needed to access all the items of a given field, so something better than a for-loop over indexes would have been nice.

though I wonder if we could have done some generics-magic to not-have-to cast to the right type after calling the method..

@github-actions github-actions bot removed the stale Issue or PR without activity label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dataplane Dataplane Project (Data type contract)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants