danepitkin commented on PR #396:
URL: https://github.com/apache/arrow-nanoarrow/pull/396#issuecomment-1984258137

   > I am the least sure (or enthusiastic, that's probably the better word ;)) 
about adding a Scalar class. Probably there is no way around needing it, if you 
want to be able to represent single values while adhering to the C interface 
type system. But it would also be nice to keep it as limited as possible (for 
example, do we think someone should ever iterate over all values of the Array 
as Scalar objects?)
   
   This idea came out of https://github.com/apache/arrow-nanoarrow/pull/397 
where I suggested having types implement their own `repr`s vs having a top-down 
function that introspects how to represent types. Does this feel like a good 
use case for the Scalar class?


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