3 ms·
> And for a company known to replace CPU architectures and their entire operating system, why does Apple persist with Objective-C? Swapping out an architecture
by davidw 17y ago
> And for a company known to replace CPU architectures and their entire operating system, why does Apple persist with Objective-C?
Swapping out an architecture is way easier than rewriting hundreds of thousands (millions?) of lines of code. Orders of magnitude easier if there is any abstraction at all.
They avoid changing because the perceived benefits are smaller than the costs, which include large switching costs.
- gte910h 17y agoI also think Objective C is quite a bit better than C++....and hope they share that same opinion, as that would be the logical replacement language.
- ComputerGuru 17y agoEasily millions. If you said > 1 billion, I think you'd still be in the clear. We're working on middle-size end user software and we have millions of C++ lines of code. So I can only imagine how many lines of code Apple has riding on Objective-C.
- jpcx01 17y agoWell, Apple doesn't only write Objective-C. I'd bet a majority of the code they write is plain C and C++ for internal OSX stuff. And some of their major projects are still Carbon (C++) (though they are trying to port to Cocoa).