Re:Lies we tell ourselves to keep using Golang
by zozbot234 on Tuesday November 26, 2024 @05:37AM
(#42244456)
The '?' operator is the opposite of a footgun. The whole point of it is to be very explicit that the function call can potentially fail, in which case the error is propagated back to the caller. You can always choose to do something different by using Rust's extensive facilities for handling "Result" types instead of, or in addition to, using '?'.
[ Parent
| on HN ]
There are no comments on this comment yet.