4 ms·
That's exactly what you have to do in Rust anyway though. Except instead of just writing `throws SomeError` in the declaration line of the function, you have t
by alphaalpha101 9y ago
That's exactly what you have to do in Rust anyway though.
Except instead of just writing `throws SomeError` in the declaration line of the function, you have to annotate virtually every line of your function with `?` and wrap the return line in `Ok(...)`.
- steveklabnik 9y agoThe ? RFC did include a "catch" construct, and there's been some discussion about doing something more like "throws SomeError." We'll see!
- alphaalpha101 9y agoIt's far too late for "we'll see".