You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/29 01:30:51 UTC

[GitHub] [arrow-datafusion] avantgardnerio commented on pull request #4004: Improve Error Handling and Readibility for downcasting `Date32Array`

avantgardnerio commented on PR #4004:
URL: https://github.com/apache/arrow-datafusion/pull/4004#issuecomment-1295679068

   > what do you think @avantgardnerio ?
   
   I 100% agree with the intent of the PR: even if they "never happen at run time" panics (and unwraps, etc) create cognitive load on the programmer to mentally statically prove that to themselves every time they look at the code, so we should just eliminate them to the extent possible.
   
   As far as implementation, as I become more proficient at Rust, I increasingly see the importance of like this being discoverable... is it possible to make this change in `arrow::ArrayRef`? Or to do a `Date32::TryFrom` trait? In the sea of code I wade through every day, anything that autocompletes is a lot more likely to get used.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org