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

Establish a style for error handling in C #392

Open
andresuribe87 opened this issue Oct 11, 2024 · 0 comments
Open

Establish a style for error handling in C #392

andresuribe87 opened this issue Oct 11, 2024 · 0 comments

Comments

@andresuribe87
Copy link
Contributor

Some ideas include:

  • Error Codes
  • Error Structs

The latter possibly makes more sense. And because memory needs to be managed, this goes hand in hand with establishing a rule for this. One possible pattern is: "Rust allocates, and rust allows deallocation". That pattern is displayed in https://jakegoulding.com/rust-ffi-omnibus/objects/

          at some point we should introduce better error handling over the C FFI, but it's not necessary at this moment

Originally posted by @KendallWeihe in #390 (comment)

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

No branches or pull requests

1 participant