Monday, March 3, 2008

Q&A with Herb Sutter and Bjarne Stroustrup

Grill the experts:

On tips for using TR1 (the first technical report of library extensions):
  • boost implements TR1 now, MS will soon
  • things are in std::tr1 now, use this
  • don't overuse smart_ptr<>

Bjarne has a new book coming out for teach programming principles and practices with C++. Toward the end he uses some of the TR1 stuff.

Java has good memory management, but still not the resource management C++ has because of constructors/destructors. RAII.

C++0x hopes to have more features for novices.

Comments on C++98's exceptions specification - don't use them.

  • i.e. Constructor::Constructor() throw(Exceptions)

No comments: