4 ms·
Whoa that looks so much simpler to me than ObjC. Of course I'm being a little naive because I haven't looked for moment at what those headers contain or how the
by 52-6F-62 9y ago
Whoa that looks so much simpler to me than ObjC. Of course I'm being a little naive because I haven't looked for moment at what those headers contain or how the API works, but just the same—that C version looks clean.
I wonder what developing a more complex application would look like.
- delinka 9y agoI don't think it looks "simpler" than ObjC. He's still making the ObjC method calls, but with even more verbosity. I'd abstract all that away into macros or function calls ... but then you're right back to ObjC.
- tzahola 9y agoHe just de-sugared [foo bar] into objc_msgSend(foo, sel_getUid(“bar”))
- 0x0 9y agoAnd probably lost a ton of compiler assisted type checking in the process. I hope nobody considers doing anything remotely like this for any reason beyond learning a little about the low-level Objective-C machinery.