boustrophedon opened a new issue, #5714:
URL: https://github.com/apache/arrow-rs/issues/5714

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   Disclaimer: I only started using arrow-rs the other day via lancedb.
   
   It seems annoying to have to both remember to import Arc and then write out 
`Arc::new(..)` every time you want to use a FooRef type.
   
   **Describe the solution you'd like**
   Wouldn't it make more sense to implement a `fn arc(self) -> Arc<Self> { 
Arc::new(self) }` on types for which FooRef is commonly used?
   
   **Describe alternatives you've considered**
   Maybe I've just been looking at a lot of example code and typically you load 
schemas/arrays from things that already return them wrapped in Arc?
   
   Also, `to_arc` is maybe more in line with Rust naming guidelines. I don't 
think `to_ref` or `ref` is the right choice since it's not returning a &T.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to