News for hackers. Stuff that matters.
Re:What Have We Forgotten? by mojuba on Wednesday January 29, 2025 @11:51AM (#42867504)
> Objective-C has plenty of dynamism

Sorry but no. Obj-C used to be my bread and butter, I knew it pretty well (alas, poor Yorick! I knew him, Horatio). The only truly dynamic part was message sending and even that got much stricter in later versions of the language, i.e. you wouldn't be able to call any method on any object like before without at least explicitly casting to `id`.

Re:What Have We Forgotten? by wruza on Wednesday January 29, 2025 @02:18PM (#42869750)
But message sending included properties and KVO/KVC that basically every object in an iphone/osx program used. It wasn’t long until they started to @synthesize these cause everything was a property. Yes, full-C modules could be written and C “interop” was just code, but the main use case was dynamic as hell with a little type checking peppered over it. They promised that objc_msgSend was fast and assembly, of course, but that is dynamic dispatch in basically every line of code still.
Re:What Have We Forgotten? by pjmlp on Thursday January 30, 2025 @01:59AM (#42875582)
Sorry, but that seems like not being knowledged of the spectrum of Objective-C capabilities then, specially to the extent how it was used in NeXTSTEP and first round of OS X frameworks.