C vs C++ (Objective-C vs Objective-C++) for iPhone

后端 未结 8 1890
余生分开走
余生分开走 2021-02-01 22:58

I would like to create a portable library for iPhone, that also could be used for other platforms.

My question is the fallowing:

Does anyone knows what is the be

8条回答
  •  天命终不由人
    2021-02-01 23:28

    They're not really different languages. Objective-C++ is just Objective-C with slightly limited support for including C++ code. Objective-C is the standard dialect, but if you need to work with C++, there's no reason not to use it. AFAIK, the biggest practical difference (aside from allowing use of different libraries) is that Objective-C++ seems to compile a bit slower. Just be sure to read up on it first if you do decide to go that route, because the merging of C++ and Objective-C is not 100% seamless.

提交回复
热议问题