3 ms·
>In Rust it's guaranteed that you never get both Ok and Err values at the same time (Result is a tagged union, not a tuple). Yeah, that's the standardized part
by coldtea 6y ago
>In Rust it's guaranteed that you never get both Ok and Err values at the same time (Result is a tagged union, not a tuple).
Yeah, that's the standardized part -- it's a tagged union. In Goland the second value might not even be an error, it's just a convention using the variadic return capabilities...