Why does Apple use Objective-C?

前端 未结 4 1132
花落未央
花落未央 2021-02-11 16:50

Why did Apple decide to use Objective-C for the iPhone SDK and not C++?

It seems strange to me that they would not have chosen a language more popular than Objective-C.

4条回答
  •  深忆病人
    2021-02-11 17:16

    Objective-C adds object oriented programming to C. It was used for NeXT, upon which a lot of OSX is derived. It supports all of C, and is simpler than C++.

    http://discussions.apple.com/thread.jspa?threadID=2091191

提交回复
热议问题