Name of several objects that have the same type

Posted by Tomek Tarczynski on Stack Overflow See other posts from Stack Overflow or by Tomek Tarczynski
Published on 2010-03-14T18:20:22Z Indexed on 2010/03/14 18:25 UTC
Read the original article Hit count: 303

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?

© Stack Overflow or respective owner

Related posts about naming-conventions

Related posts about language-agnostic