You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rust book(especially this section) details a pattern where instead of panicking, the function returns a Result<T,E> allowing execution to continue even if something went wrong in a way that doesn't require shutting off the entire program.
The text was updated successfully, but these errors were encountered:
This is definitely an issue that has been on my mind for a while. Thank you for posting this, there will probably need to be a whole release dedicated to this refactor.
Several times across naia, functions can panic in situations where they can easily recover, such as here, here, here (this one might be debatable) and here. This is all from one file.
The Rust book (especially this section) details a pattern where instead of panicking, the function returns a
Result<T,E>
allowing execution to continue even if something went wrong in a way that doesn't require shutting off the entire program.The text was updated successfully, but these errors were encountered: