Currently this snippet will evaluate to true since we don't check Result types when determining a falsey value
if (Error("error")) {
print("AAAA");
}
It's probably worth considering marking Error<> types as falsey, then things like .success() are no longer needed, shortening some of the checks (will probably keep it though to keep compatibility)
Is there an existing issue for this?
Is your feature request related to a problem?
Currently this snippet will evaluate to true since we don't check Result types when determining a falsey value
It's probably worth considering marking
Error<>
types as falsey, then things like.success()
are no longer needed, shortening some of the checks (will probably keep it though to keep compatibility)Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response