Why don't some languages allow declaration of pointers?

前端 未结 7 1670
半阙折子戏
半阙折子戏 2020-12-31 05:41

I\'m programming in C++ right now, and I love using pointers. But it seems that other, newer languages like Java, C#, and Python don\'t allow you to explicitly declare point

7条回答
  •  萌比男神i
    2020-12-31 06:02

    Pointers can be abused, and managed languages prefer to protect you from potential pitfalls. However, pointers are certainly not bad - they're an integral feature of the C and C++ languages, and writing C/C++ code without them is both tricky and cumbersome.

提交回复
热议问题