Earlier quoted context omitted.
> The overall result is that everyone pays the cognitive cost of exception (spelled "unwind" in Rust) safety Very, very few people have to think about unwind safety, because it really only comes into play when you're writing unsafe code, and relying on the ability for panics to be caught. Many folks aren't writing any unsafe, and many who are are doing it explicitly in a panic=abort environment. And most don't rely o…
> It's one character. No it isn't. With exceptions: fn foo() -> i32 { let x = bar(); x + 1 } vs fn foo() -> Result { let x = bar()?; Ok(x + 1) }
I do think it's not quite what you're saying though, due to Rust's design, we would have checked exceptions, and so the Result part would be there with exceptions, it's the Ok() part that would change.
In theory you could make a language without checked exceptions that would make it be like your example.