3 ms·
>How do people using Go and other languages that don't have exceptions solve this reduced readability problem? Rust has ? operator which converts "let x = foo(
by fiedzia 6y ago
>How do people using Go and other languages that don't have exceptions solve this reduced readability problem?
Rust has ? operator which converts "let x = foo()?" into "if foo returns Ok(value) assign value to x, otherwise make the function in which it is used return given error". Go doesn't care about readability.
- cle 6y agoGo cares very much about readability. It’s a very subjective topic...because someone doesn’t agree with your opinions on a subjective issue doesn’t mean they don’t care.