Skip to content

Use generic function to box values on heap#391

Open
willbeason wants to merge 2 commits intogoogle:masterfrom
willbeason:generic-box-function
Open

Use generic function to box values on heap#391
willbeason wants to merge 2 commits intogoogle:masterfrom
willbeason:generic-box-function

Conversation

@willbeason
Copy link
Contributor

Resolve post-1.18 todo to define a generic function that boxes a value on the heap.

@willbeason willbeason force-pushed the generic-box-function branch from 3ba3fa6 to bf1ff1e Compare March 11, 2026 03:49
Resolve post-1.18 todo to define a generic function that boxes a value on the
heap.
@willbeason willbeason force-pushed the generic-box-function branch from bf1ff1e to 1c813c9 Compare March 11, 2026 03:52
@willbeason
Copy link
Contributor Author

willbeason commented Mar 11, 2026

Saw I could simplify a bit more after looking at the code in the review tool. I think I've caught all the places now that make sense to use the new generic ptr function.

Copy link
Collaborator

@dsnet dsnet left a comment

Choose a reason for hiding this comment

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

Thank you, let's add another TODO to ironically wait for Go 1.27 support where we can use the expanded new semantics.

@willbeason
Copy link
Contributor Author

Anything else I should do for this PR?

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