kevingurney opened a new issue, #36601:
URL: https://github.com/apache/arrow/issues/36601

   ### Describe the enhancement requested
   
   To make it easier to write generic code for `arrow.array.Array` and 
associated objects in the MATLAB interface, it would be helpful to have some 
kind of ["type 
traits"-like](https://github.com/apache/arrow/blob/d676078c13a02ad920eeea2acd5fa517f14526e2/cpp/src/arrow/type_traits.h#L105)
 objects (e.g. `arrow.type.traits.StringTraits`, 
`arrow.type.traits.UInt8Traits`, etc.).
   
   These "type traits" objects would enable client code to link together 
various type-specific information in one place (e.g. MATLAB `double` <-> 
`arrow.array.Float64Array` <-> `arrow.type.Float64Type`).
   
   This would help reduce the number of "switch-like" statements across the 
MATLAB code base that are branching based on type.
   
   ### Component(s)
   
   MATLAB


-- 
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