Maybe its a language specific thing? But it doesn't seem to be the case for 
C, C++ nor is it for Java.  

Afaik the compiler just needs to know that there is a function named F1 with 
two integer parameters, it isn't really concerned about what names those 
parameters have.  It's going to link the name of the function to the 
implemented function matching the same name and same types of parameters.

#include <stdio.h>
int sum (int, int);
int main (void) {
   int total;
   total = sum (19, 23);
   printf ("Total is %d\n", total);
   return 0;
}
int sum (int a, int b) {
    return a + b;
}

As you can see above. In C you can do exactly what I have just mentioned. 
 As well as Foo(int a, int b); defined as Foo(int bananas, int spiders) { 
//Stuff };

I feel that the names of the parameters are very useful (as they usually 
mean something) so they should exactly map to their definition.  A function 
marked Foo(int first, int second) can be defined as Foo(int second, int 
first) {  //Possibly Ruh-roh? }; which wouldn't really make sense to someone 
reading your code (and it might be confusing to the developers as well!)



-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/H7xYaG27VXkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to