C ++缺少什么? [关闭]

Go is meant to be a simple language and there is about 25keywords. Because it is simple i was wondering what does it not have compared to other language like C++ or C# (which IMO is more complex than C++)

I understand its simple bc it has less keywords and other things but i dont know the langauge so what did it have to tradeoff or leave out because of that decision?

As others commented, number of keywords is not a metric for simplicity, but you're right that Go is simple. I don't know C#, but here are some essential C++ features not available in Go:

  • Generics (templates). There's been a long discussion about how to have support for generics in Go. They may come someday, but not yet.
  • Inheritance. Go's typing model just doesn't work like that. That means there's no overloading, no protected fields, no polymorphism, etc.
  • Exception handling. Panic and recover covers that, but it's not exception handling.
  • Constructors and destructors. Types have initial values and that's all.
  • C macros.

I may be missing something.

EDIT: I missed pointer arithmetic‌​.