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
Rationale discussed with @bford :
This is to emulate a generic (in pre-generics Go), panicking here makes sense because it's a programmer error, not input-dependent.
A better (longer term) solution would be to get compile-time errors by adopting generics.
Given the structure of kyber, the following piece of code often appears:
Unfortunately if P1 is not the right type, this will panic. Allowing to return errors would allow graceful handling of the problem:
The text was updated successfully, but these errors were encountered: