2 ms·
You have to understand that Obj-C is sort of a single-purpose language: it's primarily used for user interface code. Most larger projects (including most of Ap
by pavlov 11y ago
You have to understand that Obj-C is sort of a single-purpose language: it's primarily used for user interface code.
Most larger projects (including most of Apple's own software) have a C++ core underlying an Objective-C GUI layer. This split is actually quite useful in practice. C++ language features are useful for data modelling, whereas Obj-C's dynamism is useful for building GUIs.
Hence I feel that Obj-C doesn't automatically benefit from new C++-like syntax, because real-world code is already using C++ for the sections of code where it matters.
The interactions between C, C++ and Obj-C are already pretty complex. Adding new syntax into Obj-C may only muddy the waters further. I'm not sure if it's worth adding stuff to Obj-C at this point in its history.
- deleted 11y ago[deleted]