4 ms·
Nice things like nil pointers and a foundation of C.
by st3fan 2y ago
Nice things like nil pointers and a foundation of C.
- pavlov 2y agoThe C foundation was absolutely essential for doing real-world useful things in Objective-C. Writing a GUI image editor? Your underlying pixel buffer types can be plain C and you can use all the C libraries that exist. No cost of bridging those data types to the late-bound object-oriented Obj-C world where your GUI is implemented, and no constricting interface hoops like Java Native Interface. If your GUI code needed to read a pixel, you could just do C pointer arithmetic right there. And the same goes for audio, networking, and anything else you can imagine on a desktop where all the underlying stuff is C.