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
Some functions should return a Resultinstead of using an assert because doing the latter would panic in runtime.
In general, if you don't have any choice but to panic it is better to describe the cases in which that function would panic and why in the documentation.
For this issue, we just want to replace these assertions with debug assertions. We'll address the Result in another issue.
Some functions should return a
Result
instead of using anassert
because doing the latter would panic in runtime.In general, if you don't have any choice but to panic it is better to describe the cases in which that function would panic and why in the documentation.
For this issue, we just want to replace these assertions with debug assertions. We'll address the
Result
in another issue.An example would be this.
The text was updated successfully, but these errors were encountered: