|
|
|
|
|
by knorker
2031 days ago
|
|
> Go or Rust did not simply rename exception related keyword I don't know about Rust, but Go most certainly did. > C++, for instance, is extremely difficult to write exception safe code in. It's WAY easier to write exception safe code in C++ than in Go, because C++ has RAII and scoped defers. See my example for what a mess Go makes of this in this comment: https://news.ycombinator.com/item?id=25276360 I find C++ exception safe code to be pretty much trivial. Once you get used to "no naked resources" RAII just makes everything exception safe automatically. |
|