Mikel AstizTBH I'm kind of fine with the existing name too. In my mind, `Pickle::WithData()` and `PickleIterator:WithData()` are both pretty clear, since Pickle is owning and PickleIterator is non-owning.
So the exceptional case is already called out (Pickle::With*Unowned*Buffer).
But if you want, I'm not really against this, though I don't love the current name. Maybe `Pickle::WithCopyOf()` or something instead would be better (from my perspective).
Whether or not we choose to rename, I think it's probably also worth throwing a `LIFETIME_BOUND` attribute on `WithUnownedBuffer()` even in the short-term.
Given the feedback above, I will abandon this rename. Thanks!
We should discuss `LIFETIME_BOUND` separately because honestly I don't know how it can be used with spans (which are copied by value).
[base] Rename Pickle::ForData() to emphasize copyingMikel AstizWithData
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |