Hacker News new | ask | show | jobs
by tomwans 5557 days ago
it is surprising because most people probably expect NSArray to just work like a plain array (see the naive C implementation)
2 comments

I think the ability to combine C code in Obj-C allows for the usage of a huge legacy code base. However, I wouldn't be surprised if there was a design decision at some point that deliberately made it harder to port NextStep (NS) objects back to C. Creates lock-in...
Why'd I get down-voted for this?
yes, so there'd be NSArray and NSImmutableArray