Skip to content
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

Move toward a more consistent error/exception paradigm #103

Open
four0four opened this issue Mar 27, 2020 · 0 comments
Open

Move toward a more consistent error/exception paradigm #103

four0four opened this issue Mar 27, 2020 · 0 comments

Comments

@four0four
Copy link
Collaborator

Right now scopehal doesn't have a consistent paradigm for distinguishing returned data from an error condition. Even worse, sometimes functions which can error are typed to return void.

We should figure out some kind of consistent error-reporting scheme, whether that be with exceptions (and there are issues here w.r.t cross library reporting), always returning an error code and passing state by reference, a combination of the two, or some alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant