4 ms·
Why did they change a lot of the variable class types to id? Is that an optimisation I haven't heard of?
by afro88 11y ago
Why did they change a lot of the variable class types to id? Is that an optimisation I haven't heard of?
- klausa 11y ago`instancetype` is relatively new addition to Objective-C/Clang. I assume their version just doesn't support it yet, since the regression to `id`.
- afro88 11y ago`instancetype` was a few years ago. I'd be worried if they're only supporting ObjC without any modernisations like that and subscripts etc. But that's not what I'm talking about. Here they've literally replaced all type declarations with `id` (not just return types where you'd normally see `instancetype`). Seems odd.
- hboon 11y agoI haven't read the code. But maybe they did that during porting. It's easier to get code to compile and come back to fix it later. Maybe they haven't gotten around to it?