News for hackers. Stuff that matters.
Re:Where do argc and argv come from? by monocasa on Monday August 10, 2020 @02:16PM (#24112278)
Smalltalk and ObjC for a couple examples. I wouldn't be surprised to find out Swift was too, but I'm not 100% on that.
Re:Where do argc and argv come from? by plorkyeran on Monday August 10, 2020 @02:27PM (#24112417)
The name of method parameters in obj-c is not significant. The argument label and argument name are different things. In `- (void)frobulateThing:(id)firstThing andAlso:(id)secondThing;`, `firstThing` and `secondThing` are the argument names and can be changed with no impact on the callers, while `frobulateThing:andAlso:` is the part relevant to callers.

In Swift the argument labels are the same as the argument names by default, but you can also supply different values for them.