> In my experience people complain about Obj-C syntax when what they actually dislike are verbose Cocoa/Foundation/etc APIs
If so, that’s a real shame. Foundation may be the single best-designed standard library for a (non-functional) language ever.
If so, that’s a real shame. Foundation may be the single best-designed standard library for a (non-functional) language ever.
One CoreFoundation example at random:
CFURLRef CFURLCreateCopyDeletingLastPathComponent(CFAllocatorRef allocator, CFURLRef ref);
I think nearly everyone who reads that prototype will immediately understand what it does, but there's no denying it's a mouthful.Tack on some unfamilar square-brackets and intersperse argument names, and it's understandable that people will conflate the syntax with the APIs.
I don't mention immutable by default behavior because it was long ago and written in C.