3 ms·
Personally I prefer the brackets of ObjC to the colon overload of C++
by Apocryphon 9y ago
Personally I prefer the brackets of ObjC to the colon overload of C++
- saagarjha 9y ago> 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;
- Apocryphon 9y agoYes, but they don't come in pairs and are neatly spaced away from each other.
- saagarjha 9y agoThis was mainly meant as a joke :)
- iainmerrick 9y agoIn 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.
- saagarjha 9y agoYeah, 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.