News for hackers. Stuff that matters.
Re:GNUstep: Open-source, Object-oriented, Cross-platform Dev... by pianoben on Monday December 13, 2021 @01:02PM (#29542276)
I agree, Foundation is a gem! The method naming is one of the assets - the names are clear, regular, and usually fairly obvious. The downside to that regularity and clarity is that the names are long.

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.

Re:GNUstep: Open-source, Object-oriented, Cross-platform Dev... by bvrmn on Tuesday December 14, 2021 @05:15AM (#29550111)
For me Foundation lacks composability. This method should be really two: CreateCopy (I assume it already exist) and mutating DeleteLastPathComponent.

I don't mention immutable by default behavior because it was long ago and written in C.

Re:GNUstep: Open-source, Object-oriented, Cross-platform Dev... by gcasa on Monday December 13, 2021 @04:34PM (#29544974)
CoreFoundation is not written in ObjC, it's C only (although toll-free bridged).