3 ms·
For both Go and Rust, it's not supposed to be exception handling. But both languages have acquired proper unwinding, so people can and do use it that way. The
by Animats 10y ago
For both Go and Rust, it's not supposed to be exception handling. But both languages have acquired proper unwinding, so people can and do use it that way. The original idea in Go was that if you caught a panic, the program was in a bad state, and all you should do is report the problem and maybe restart the program. Like "longjmp" in C. Now, people are doing recovery without re-launching the program. That's effectively exception handling.