C/C++: someObject->setColor(0.4,0.3,1.0,0.5);
Obj-C: [someObject setColorRed:0.4 green:0.3 blue:1.0 alpha:0.5];
In the C code, what the hell are all those parameters, what do they mean? I need to look up some external reference to find out. In the Obj-C case, it's obvious, the parameter names are part of the name of the function, so when writing and reading code, the intent is clear. The square brackets are really not an issue once you've used the language for more than 5 minutes, and actually these days they're not even needed for simple properties - you can use the familiar dot notation if you want. Looks like Swift retains the explicit parameter naming, albeit within round brackets, so it's a bit of a hybrid. I'd hate to see named parameters disappear, they really are an invaluable aid to productivity and above all, understanding of a piece of code.
"If I do not want others to quote me, I do not speak." -- Phil Wayne