Thursday, January 24, 2008

What's missing in C++?

  • No automatic garbage collection (It is possible to use an external GC though, such as the Boehm_garbage_collector)
  • No requirement for bounds checking of arrays (The std::vector class can be used to avoid this problem)
  • No operations on whole arrays (This can be achieved with Template classes).
  • No syntax for ranges, such as the A..B notation used in several languages
  • No nested function definitions
  • No formal closures or functions as parameters (only function and variable pointers). (C++0x will probably feature closures).
  • No native support for multithreading and networking (C++0x will provide thread-local storage and threading classes in the standard library)
  • No standard libraries for several other application programming needs

[source: http://en.wikipedia.org/wiki/Criticism_of_C%2B%2B]

No comments: