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
It would be nice if all public functions had a @spec type specification so it becomes more obvious from the documentation what types can be given to a function without reading the actual code.
It would be nice if all public functions had a
@spec
type specification so it becomes more obvious from the documentation what types can be given to a function without reading the actual code.This would also make it possible for dialyzer to do type inference on the code, e.g. I just came across an issue where a
RSAPrivateKey
was given toExPublicKey.encrypt_public
but the code ended up failing insideExPublicKey.RSAPublicKey
(https://github.com/ntrepid8/ex_crypto/blob/master/lib/ex_public_key/ex_rsa_public_key.ex#L31) with the errorbecause the line
did not use
#{inspect rsa_public_key}
.The text was updated successfully, but these errors were encountered: