Name of several objects that have the same type
- by Tomek Tarczynski
Lets assume we have a class car.
How would You name parameters of function that takes two different cars?
void Race(Car first, Car second);
or maybe
void Race(Car car1, Car car2);
The same situation with function that takes car and list of cars as a parameters.
I'm used to name 'cars' for list of cars, so it is inconvenient to use names like:
void Race(Car car, List<Car> cars);
Any suggestions about names?