Closed ripytide closed 2 months ago
Although COMPONENTS_COUNT
is slightly clearer in that it is counting the number of components whereas COMPONENTS_LEN
could be interpreted as being the bit-length of each individual component.
Maybe even COMPONENTS_NUM
NUM_COMPONENTS?
Yep that works for me :+1:
As it stands it gives the wrong impression that is is somehow relating to the values of the components themselves and not the number of components. My suggestions are to rename it to either
COMPONENTS_LEN
orCOMPONENTS_COUNT
with a mild preference forCOMPONENTS_LEN
due to it being shorter and "len" signifying more a const-sized lookup likeVec::len()
as opposed toIterator::count()
.