Should libaes API return Result<> ? #27
keepsimple1
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently
libaesAPIs do not returnResult<>. Instead they return a zero / empty value for error cases. One problem is that, sometimes a valid case could also produce empty value. For example, when the output (clean text) of decrypt could be empty.The current design was intentional, i.e. avoiding complexity coming with
Result<>, such asunwrap(), error type, etc. But I'm wondering if that's still making sense as there have been issues (like this) related to that. Hence this poll.1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions