News for hackers. Stuff that matters.
Re:Why Go is doomed to succeed by pcwalton on Saturday June 13, 2015 @01:23PM (#9711752)
> According to Pike's blog, the real motivating factor for Golang was how forbidding and painful Google's C++ build process was. A lot of Golang makes more sense if you look at it through this lens: above all else, don't be like C++.

You and I disagree in regards to a lot about Golang, but I think you're spot-on here. I've thought for years that it was interesting how yosefk's criticisms of C++ in the "Frequently Questioned Answers" directly correspond to decisions in Golang: "compile times are long" → "use the Plan 9 toolchain", "memory management is difficult and unsafe" → "garbage collection", "templates are a mess" → "no generics", "exceptions interact badly with RAII" → "no traditional exceptions", "header files are a pain" → "use packages and forbid circular dependencies", etc.

Re:Why Go is doomed to succeed by tptacek on Saturday June 13, 2015 @01:25PM (#9711765)
Oh, wow. I love the C++ FQA (I'm a C++ refugee, from the nadir of C++, when Alexandrescu's book had just come out and template error messages were still 10 pages long).

I never though to evaluate Golang against it. Great point.

Re:Why Go is doomed to succeed by pron on Saturday June 13, 2015 @04:24PM (#9712503)
Why do exceptions interact badly with RAII?
Re:Why Go is doomed to succeed by pcwalton on Saturday June 13, 2015 @04:36PM (#9712551)
You have to think carefully about how to clean up your object if something throws during its constructor, and throwing an exception in a destructor can lead to your program aborting if that destructor was called as a result of another exception being thrown.

Note that I don't think banning exceptions is really the answer; in particular, the destructor issue is just a specific case of "handling errors during finalization is really hard", and you can't get away from finalization in general. Exceptions really put those issues front and center, though.

Re:Why Go is doomed to succeed by pjmlp on Sunday June 14, 2015 @03:58AM (#9714124)
Although I would say that is a C++ problem, many other languages with exception support do enjoy more sane models than C++.
Re:Why Go is doomed to succeed by pron on Sunday June 14, 2015 @12:12AM (#9713691)
Oh, exceptions during construction/destruction, right. I don't think Go addresses that at all. Go's defer is just like a finally block, and panics can happen at any time.