-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ custom result type used for serialization results #3005
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
rerun_cpp/src/rerun/status.cpp
Outdated
code = StatusCode::ArrowStatusCode_AlreadyExists; | ||
break; | ||
default: | ||
code = StatusCode::Unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code = StatusCode::Unknown; | |
code = StatusCode:: ArrowStatusCode_Unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd argue that's different - we don't know if it's an error unknown, instead it is an error that we literally don't know about
e0a839c
to
370bb25
Compare
8872e2d
to
036d6d1
Compare
What
Introduces a very simple
rerun::Result
. I decided to keep it a lot more simple than the arrow Result type and refrained from the typical "return or assign" etc. macro since I noticed that they get quite complicated quickly.The idea is that the rerun result type won't be needed by a lot of manual code, so erring on the too lightweight side should be in our favor.
We use this now accross the entire public serialization path - meaning that once we move out array->arrow serialization helper into separate headers we should be pretty much done with not exposing arrow headers!
Checklist