Re:Bringing Objective-C to the Amiga
by Apocryphon on Sunday April 22, 2018 @10:26PM
(#16900072)
Personally I prefer the brackets of ObjC to the colon overload of C++
[ Parent
| on HN ]
> the colon overload of C++
There's a lot of colons here too:
- (id)outputImageProviderFromBufferWithPixelFormat:(NSString *)format
pixelsWide:(NSUInteger)width
pixelsHigh:(NSUInteger)height
baseAddress:(const void *)baseAddress
bytesPerRow:(NSUInteger)rowBytes
releaseCallback:(QCPlugInBufferReleaseCallback)callback
releaseContext:(void *)context
colorSpace:(CGColorSpaceRef)colorSpace
shouldColorMatch:(BOOL)colorMatch;
Re:Bringing Objective-C to the Amiga
by iainmerrick on Monday April 23, 2018 @04:06AM
(#16901433)
In other languages, a function with that many parameters would be close to unusable. Far too easy to get them mixed up. The way Obj-C forces you to name each argument is great.
Yeah, I'm not complaining, I really do like argument labels. Objective-C sometimes does go overboard with sentence-like labels, but usually it's not an issue.
Re:Bringing Objective-C to the Amiga
by Apocryphon on Monday April 23, 2018 @02:10AM
(#16900893)
Yes, but they don't come in pairs and are neatly spaced away from each other.