4 ms·
Calling std::process::exit doesn't seem like much of a "workaround"? That's basically the same as Java, which is doing OK as a language. https://doc.rust-lang.
by tveita 10y ago
Calling std::process::exit doesn't seem like much of a "workaround"? That's basically the same as Java, which is doing OK as a language.
https://doc.rust-lang.org/std/process/fn.exit.html https://doc.rust-lang.org/std/process/fn.exit.html
- yarper 10y agoThis is true! Perhaps my comment was a bit in haste, however there's a lot of caveats with "exits" rather than returns which complicate the matter, for example in Java System.exit can fail (and finizalizers may or may not be run). On top of that you have to type System.exit all the time, which is quite annoying