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

Completion of error handling #4

Open
elfring opened this issue Jan 10, 2017 · 4 comments
Open

Completion of error handling #4

elfring opened this issue Jan 10, 2017 · 4 comments

Comments

@elfring
Copy link

elfring commented Jan 10, 2017

Would you like to add more error handling for return values from functions like the following?

@100
Copy link
Owner

100 commented Jan 10, 2017

Yeah I think that's definitely something useful, I'm just not sure what the best way to handle this would be. E.g. should it exit upon receiving a null matrix, network, etc. or should we add some other mechanism for checking status built into the library

@elfring
Copy link
Author

elfring commented Jan 10, 2017

I suggest to avoid ignorance of return values a bit more.
Would you like to detect every error situation as early as possible?

@100
Copy link
Owner

100 commented Jan 11, 2017

Yes, it's probably best to detect these within functions as they occur and subsequently exit, but allow functions to return null pointers if they are user-exposed (networks, matrices) and have the user handle those

@elfring
Copy link
Author

elfring commented Jan 11, 2017

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

No branches or pull requests

2 participants