Originally Posted by fischerandom
Salem often use the plural form when declaring arrays of things, if that makes the code more readable.
In what way does it make the code "more readable"? When declaring the name of an array or vector, etc., the access of an element in the array/vector is that of a single object, so the singular-form is logical!!! When declaring the array/vector, it is very clear there is [ OBJECTS ] in the array and we access object[ n ], not objects[ n ].
#define OBJECTS in the struct is also suitable, the scope is not limited to that struct, but OBJECTS belongs to the struct (is used in conjunction with defining the array size, etc.) If that style (typically putting a define size of array size in the struct as close as possible to the array) works in the Darwin kernel code in MacOS X, then it works for me too.