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
I think it would make the api safer. Checking whether a string is empty to say the system is unsupported should be done in most cases and making it return an std::result would make users of the library think about that.
This would just increase complexity of the API for an information that you can check with a constant. Doesn't sound like a good idea...
While with a perfect programmer this would be correct, we live in a world with imperfect actors. Rust code and libraries should nudge users towards proper and safe code and I believe this change would do that.
Instead of returning an empty value on unsupported systems an err could be returned.
The text was updated successfully, but these errors were encountered: